Title: Using the wordpress api from another file
Last modified: August 19, 2016

---

# Using the wordpress api from another file

 *  [sree01](https://wordpress.org/support/users/sree01/)
 * (@sree01)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/using-the-wordpress-api-from-another-file/)
 * 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
 * Sree

The topic ‘Using the wordpress api from another file’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [wordpress api](https://wordpress.org/support/topic-tag/wordpress-api/)

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 0 replies
 * 1 participant
 * Last reply from: [sree01](https://wordpress.org/support/users/sree01/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/using-the-wordpress-api-from-another-file/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
