Help Me Choose RSS or XML-RPC

It really depends on where you want your focus to be. Here’s a case for and against each: XML-RPC It sounds like your standard process is: Log in to main site Write post in X category Publish post Post is copied to the child site specific to X category In this setup, XML-RPC makes the … Read more

XML-RPC and Custom Post Types

@keatch is correct that out-of-the-box WP XML-RPC does not support post types other than ‘post’ and ‘page’. However, a quick stroll through the code indicates that this may be relatively easy to change. In WP 3.0.4, xmlrpc.php, line 1989, we have the function mw_newPost() (which does the heavy lifting). At line 2005 there is an … Read more

Is it possible to post with Word 2007 via XML-RPC and limit categories by user?

As per comment it is hard to answer this without knowing specifics of setup. In general there are two generic approaches to this: Prevent unwanted terms from being returned by filtering get_terms_args or other available hooks. Prevent unwanted terms from being saved (or cancel them right after) by hooking somewhere in wp_insert_post(). The more complex, … Read more

Create a new post in wordpress with XML-RPC with the correct GUID?

This is an annoying problem, but there is a way to get the correct link if I do: $my_page_ask = array( ‘link’, ‘guid’ ); $params = array(0,$username,$password,$my_page_id, $my_page_ask); $clientresult = $client->query(‘wp.getPost’, $params); $post = $client->getResponse(); The string link contains the correct permalink if: $my_page[“post_status”] = “publish”; It doesn’t work on draft and the string guid … Read more

wordpress inserting posts programatically through a url

I finally got the answer to the problem. To make this code work: global $user_ID; $new_post = array( ‘post_title’ => ‘My New Post’, ‘post_content’ => ‘Lorem ipsum dolor sit amet…’, ‘post_status’ => ‘publish’, ‘post_date’ => date(‘Y-m-d H:i:s’), ‘post_author’ => $user_ID, ‘post_type’ => ‘post’, ‘post_category’ => array(0) ); $post_id = wp_insert_post($new_post); we need to make sure … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)