请恕小弟我愚钝,xmlrpc.inc远程获取和添加wordpress分类
Jun 13, 2016 pm 01:27 PM
请恕我愚钝,xmlrpc.inc远程获取和添加wordpress分类
已经实现发布文章了,但是始终不能做到:判断提交的分类是否存在,若存在则添加到此分类,不存在则添加新分类。
网上有现成的接口(metaWeblog.getCategories),我不会用。
下面是发布文章的代码:
- PHP code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
这个例子只能实现添加到wordpress中已有分类,如没有,则文章添加到未分类中。
有哪位接触过远程发布wordpress的啊?
------解决方案--------------------
学习, 什么东东 ?没看懂。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development
