cmawhorter
Member
Posted 1 year 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.
cmawhorter
Member
Posted 1 year ago #
Thanks for your prompt response. Sorry it took me so long to get back... my laptop died ;[ Thanks again.
cbetancourt
Member
Posted 5 months 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