WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] XML-RPC and Custom Fields (4 posts)

  1. cmawhorter
    Member
    Posted 6 years ago #

    I am going on a trip (and will be blogging about it) and I am going to setup a script to automatically make posts and create categories.

    I can make a post and assign categories but I'm having trouble with custom fields. I'd like to be able to add many custom fields (at the very least latitude and longitude).

    If someone could point me to a real world example of XMLRPC with Custom Fields, or even a completed XML file utilizing custom fields it would make my life easier.

  2. Joseph Scott
    Member
    Posted 6 years ago #

    For now the best resources for this is the original trac ticket: http://trac.wordpress.org/ticket/5148#comment:4

    and the thread on the wp-xmlrpc email list:

    http://comox.textdrive.com/pipermail/wp-xmlrpc/2007-November/thread.html#103

  3. cmawhorter
    Member
    Posted 6 years ago #

    Thanks for your prompt response. Sorry it took me so long to get back... my laptop died ;[ Thanks again.

  4. cbetancourt
    Member
    Posted 5 years ago #

    @cmawhorter So did this work for you?

    I'm having issues submitting custom_fields as part of a newPost or editPost. The story gets added correctly, but the custom field does not.

    // new post
    $content = array(array(
    	'title' => $row->msg_title,
    	'mt_excerpt' => $row->msg_excerpt,
    	'description' => $row->msg_full,
    	'custom_fields' => array(array(
    		'key' => 'queue_id',
    		'value' => $id . ''
    	),'struct') //end custom fields
    ),'struct');

    Thanks,
    Claude

Topic Closed

This topic has been closed to new replies.

About this Topic