Title: Creating Posts or Pages through the API
Last modified: August 19, 2016

---

# Creating Posts or Pages through the API

 *  [filesofnerds](https://wordpress.org/support/users/filesofnerds/)
 * (@filesofnerds)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/creating-posts-or-pages-through-the-api/)
 * In writing a plugin is there a way to generate pages/posts without using the 
   admin interface? That is, can we create pages/posts through the WordPress API?
   And is there an easy way to do this? I want the method to be generic, and this
   should be plain since I’m writing a plugin.
 * I’ve considered opening and appending to .htaccess as a tactic, but I really 
   cannot assume it exists in the wild (not generic enough). Plus, I’d like pretty
   URLs that mask. Hence, why I ask.
 * Thanks!
 * Cheers,
    Aaron nerdfiles.net

Viewing 1 replies (of 1 total)

 *  Thread Starter [filesofnerds](https://wordpress.org/support/users/filesofnerds/)
 * (@filesofnerds)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/creating-posts-or-pages-through-the-api/#post-1326970)
 * wp_insert_post()

Viewing 1 replies (of 1 total)

The topic ‘Creating Posts or Pages through the API’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [filesofnerds](https://wordpress.org/support/users/filesofnerds/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/creating-posts-or-pages-through-the-api/#post-1326970)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
