Insert post in another database

You could avoid SQL altogether and use the XML-RPC API. This would also let you post to remote wordpress installs too. ( note if XML-RPC is not an option, scroll further down ) If Using XML-RPC Here’s some code from a quick google search using XML-RPC to post to a remote WordPress blog: http://en.forums.wordpress.com/topic/great-code-for-remote-posting?replies=5 Here’s … Read more

using $wpdb to insert a form into a post

In the success part of your code, you can build an array representing a post, and use wp_insert_post as such : Example $mypost = array( ‘post_title’ => ‘My Title’, ‘post_type’ => ‘page’ //… add other fields according to your form ); $mypost_id = wp_insert_post( $mypost ); //Returns new post id on success Any field you … Read more

post_content sanitization / transformation process

In reading through the function, I do not see anything that inherently transforms it. I’m relatively certain that there are no transforms (except maybe autop) until the display of the data. I would recommend trying one or two posts, making sure that it’s going to insert correctly, and then going all out. Also, depending on … Read more

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