You need to create a PHP script on a Wordpress site that accepts $ _POST from a form other than Wordpress.
Wordpress site
/ _ static / receiver.php (I always put scripts like this in a folder named _static in the WP root folder):
<?php require('../wp-load.php'); // Load Wordpress API $data = ( isset( $_POST ) ) ? $_POST : null; // Get POST data, null on empty. $post = array( 'post_title' => $data['post_title'], 'post_content' => $data['post_content'], ); if ( $data && $data['key'] == '1234567890' ) // To Prevent Spam, bogus POSTs, etc. $post_id = wp_insert_post( $post, true ); // Insert Post ?>
Non-Wordpress Website Form:
<form method="post" action="http://your-wordpress-site.com/_static/receiver.php"> <input type="text" name="post_title" /> <textarea name="post_content"></textarea> <input type="hidden" name="key" value="1234567890" /> </form>
source share