XML RPC post produces immediate revision with odd post_date_gmt

Alright. I think I cracked it. <dateTime.iso8601>20140111T20:39:15</dateTime.iso8601> Should be: <dateTime.iso8601>20140111T20:39:15Z</dateTime.iso8601> Looks like the toolkit I was using didn’t quite implement iso8601 perfectly (or wordpress isn’t – not sure). I’m using Node WordPress and tracked down that it uses the module Node XML RPC to actually send the XML RPC. This seems to be where the … Read more

Custom category for posts via XMLRPC

You can do it by sending the 5th parameter to wp.newPost, like this: $request = xmlrpc_encode_request( “wp.newPost”, array( 1, $xmlrpc_username, $xmlrpc_password, $content, $terms) ); Please note the $terms should be in this format: ‘Taxonomy names as keys, array of term IDs as values’, according to the Codex. FYI, here is another thread related to your … Read more

Modifying WordPress XML-RPC Built-Ins

Figured it out. $post_obj[‘permalink’] = my_getDraftPermalink( $post_obj[‘post_id’] ); That’s the correct syntax for getting the post_id. Then a custom function that gets the permalink the same way as the post dashboard UI is required. The dashboard uses get_sample_permalink and not get_permalink, which will return the draft path if the post isn’t live. function my_getDraftPermalink ( … Read more

Weblog clients cannot retrieve posts: An invalid hexadecimal character (0x7) was found in the element content of the document

If you run your page through validator it detects said broken characters as errors: Line 107, Column 116: non SGML character number 7 …or growth and convergence. Historians (Kennedy 1989) and international relat… I can actually see them on page in Opera v12, but not Chrome. Since your page source and web server advertise UTF-8, … Read more