Title: Add/Edit Posts Through Ajax?
Last modified: August 21, 2016

---

# Add/Edit Posts Through Ajax?

 *  [kettlewell](https://wordpress.org/support/users/kettlewell/)
 * (@kettlewell)
 * [13 years ago](https://wordpress.org/support/topic/addedit-posts-through-ajax/)
 * I’m looking to create a plugin that when a link is clicked (with a PostID), it
   will open the screen ala Ajax style to create ( or edit an existing ) post.
 * And upon clicking publish / schedule, it will return to the previous screen.
 * I don’t recall any plugins that do this for an example… my Ajax skills are mediocre
   at best, so any pointers in that direction would be greatly appreciated.

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

 *  Thread Starter [kettlewell](https://wordpress.org/support/users/kettlewell/)
 * (@kettlewell)
 * [13 years ago](https://wordpress.org/support/topic/addedit-posts-through-ajax/#post-3811236)
 * Update / Clarification:
 * I’m working on a calendar plugin that is in the WP Admin Dashboard only( ie. 
   no public facing access )
 * When an admin clicks on an existing calendar entry, should open ( via Ajax ) 
   the edit post dialogue ( post.php )
 * And if the calendar is clicked where there is no entry, should open the new post
   dialogue ( post-new.php ) with the date/time included to pre-populate.
 * I can’t find anything that does anything remotely close to this, so any tips,
   tricks, pointers or examples would be great.
 * Thanks
 * Matt
 *  [Brian Hogg](https://wordpress.org/support/users/brianhogg/)
 * (@brianhogg)
 * [13 years ago](https://wordpress.org/support/topic/addedit-posts-through-ajax/#post-3811323)
 * Would probably be best to create your own interface, and just load the post using
   get_post() and save with wp_update_post(). Make sure you’re checking for access
   to be able to edit the given post, along with passing/checking a nonce with the
   ajax requests.
 *  Thread Starter [kettlewell](https://wordpress.org/support/users/kettlewell/)
 * (@kettlewell)
 * [13 years ago](https://wordpress.org/support/topic/addedit-posts-through-ajax/#post-3811324)
 * I actually had considered this… like a front-end system, except it would be in
   the backend, and I could put it in a lightbox if I wanted ( which my original
   idea consisted of ).
 * Thanks for your input Brian… and the reminder about nonce’s

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

The topic ‘Add/Edit Posts Through Ajax?’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [calendar](https://wordpress.org/support/topic-tag/calendar/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 3 replies
 * 2 participants
 * Last reply from: [kettlewell](https://wordpress.org/support/users/kettlewell/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/addedit-posts-through-ajax/#post-3811324)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
