且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 Python &XML-RPC 将自定义字段添加到 Wordpress 帖子?

更新时间:2022-01-12 21:24:09

自定义字段是一组键/值对,如下所示:

Custom fields are a set of key/value pairs that look like:

"custom_fields" = (
        {key = city; value = Sacramento; },
        {key = city; value = Sandy; }
    )

尝试使用 metaWeblog.getPost 为已经具有自定义字段的帖子获取帖子数据,您将看到它们的样子.

Try fetching post data with metaWeblog.getPost for a post that already has custom fields and you'll see what they look like.