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

---

# wordpress api from another php file

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

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [sree01](https://wordpress.org/support/users/sree01/)
 * (@sree01)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wordpress-api-from-another-php-file/#post-932208)
 * please help i am waiting for a reply
 *  Thread Starter [sree01](https://wordpress.org/support/users/sree01/)
 * (@sree01)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wordpress-api-from-another-php-file/#post-932209)
 * anybody?????

Viewing 2 replies - 1 through 2 (of 2 total)

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

## Tags

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

 * 2 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/wordpress-api-from-another-php-file/#post-932209)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
