• Resolved szunyi

    (@szunyi)


    Hello,

    How can i insert a post from a PHP file.
    Please give me a working “wp_insert_post” example.

    Thanks
    bye

Viewing 16 replies (of 16 total)
  • 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 🙂

Viewing 16 replies (of 16 total)
  • The topic ‘Insert post from PHP script’ is closed to new replies.