• 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

    (@kettlewell)

    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

    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

    (@kettlewell)

    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.