Forums
Home / Fixing WordPress / Insert post from PHP script
(@szunyi)
8 years, 5 months ago
Hello,
How can i insert a post from a PHP file. Please give me a working “wp_insert_post” example.
Thanks bye
(@jpvitulli)
7 years, 9 months ago
I don’t know if someone still needs this. the include you need to make such a script work is this one:
require( ‘/<path_to_your_wordpress_installation>/wordpress/wp-root/wp-load.php’);
works fine for me 🙂