
1 libraor 2015-05-23 19:53:26 +08:00 为什么要用wordpress_xmlrpc模块。。。直接把数据库上了不就好了么。。这才有快感。。 |
2 bdbai 2015-05-23 20:00:34 +08:00 via iPhone 在服务器上写个脚本接收post来的post,然后调wp函数保存文章 |
3 pc10201 2015-05-23 21:11:50 +08:00 xmlrpc模块我觉得很麻烦,还是入库会快一些~ |
4 jy02201949 高级码农当然是直接用python上了mysql最直接哇哈哈哈 |
5 BOYPT 2015-05-24 00:02:48 +08:00 via Android 你看看wp的xmlrpc接口,里面有接口有些能定义META字段的功能。这跟python没什么关系,是xmlrpc的接口。 |
6 ccbikai PRO 这不是客户端的问题,应该是插件没有调用 xmlrpc_publish_post 这个钩子 ,自己改一下插件 xmlrpc_publish_post Runs when a post is published via XMLRPC request, or if it is edited via XMLRPC and its status is "published". Action function arguments: post ID. http://codex.wordpress.org/Plugin_API/Action_Reference |
7 kankana 2015-05-24 11:24:50 +08:00 https://codex.wordpress.org/XML-RPC_WordPress_API/Posts#Parameters_3 custom_fields 参数 wp-includes/class-wp-xmlrpc-server.php function set_custom_fields |
8 sdlearn OP 多谢各位解答,之所以没有把数据库给上了是考虑到脚本可以在任何地方跑,而数据库端口没有对外开放。目前已经通过新添加一个页面来接受post来的meta字段加到wp_postmeta表中来实现了。 |
11 fundchan 2015-05-27 11:20:44 +08:00 @jy02201949 直接入库,featured image要怎么处理阿,wordpress会自动处理一下图片的。 |