You should be including this file:
include( "/some/path/wordpress/wp-config.php" );
That’ll get you to where you can use the wp_insert_post() function.
If this is a multi-site blog, make sure to use the switch_to_blog() function first.
You should be including this file:
include( "/some/path/wordpress/wp-config.php" );
That’ll get you to where you can use the wp_insert_post() function.
If this is a multi-site blog, make sure to use the switch_to_blog() function first.