WordPress.org

Forums

JSON API
Update_Post That is a Custom Post Type (2 posts)

  1. irreferential
    Member
    Posted 1 year ago #

    I am hoping to batch update a custom field within a bunch of posts after printing a report, but those posts are all custom post types. Update_posts works just fine with regular posts, but unfortunately even passing the post ID it things the custom posts don't exist.

    I've had to build a custom controller to do some taxonomy wizardry, but I was hoping there was a way out of the box to update a custom post type because ugh.

    Thanks for any insight!

    http://wordpress.org/plugins/json-api/

  2. irreferential
    Member
    Posted 1 year ago #

    Nevermind. It was just a case of the mornings. I typed in the name of the wrong post type. Anyway, if anyone is looking for the same answer, the url is just ...

    http://www.example.com/api/posts/update_posts/&post_type=POST-TYPE-NAME&id=ID

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • JSON API
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic