Using the wordpress api from another file (2 posts)

  1. sree01
    Posted 6 years ago #

    I want to use the wordpress api from a php(test.php) file located outside the wordpress directory.I want to create post and create post category in the wordpress from this php(test.php) file. i want to use the following functions

    • wp_insert_post
    • wp_insert_category
    • category_exists
    • wp_set_post_tags

    please give the list of files to be included to use these functions


  2. pampfelimetten
    Posted 6 years ago #

    you just have to include wp-load.php in the root directory.

Topic Closed

This topic has been closed to new replies.

About this Topic