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

---

# Using the wordpress functions from another php file

 *  [sree01](https://wordpress.org/support/users/sree01/)
 * (@sree01)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/using-the-wordpress-functions-from-another-php-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 functions from another php file’ is closed to new
replies.

## Tags

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

 * 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-functions-from-another-php-file/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
