WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
can not get attachment (4 posts)

  1. shinboiz
    Member
    Posted 2 years ago #

    Hi,
    I used the Get Recent Post and Get Post (http://www.example.org/api/get_post/) but it did not return any attachments.

    How can i do to get attachments of Post?

    Please help me. Thank you.

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

  2. LNGU
    Member
    Posted 1 year ago #

    add &include=attachments

  3. keygrip
    Member
    Posted 1 year ago #

    When I add &include=attachments, I can see all the attachments for a specific post but what if I want to get just one specific attachment by its id or title?

  4. hrbwaxdoll
    Member
    Posted 1 year ago #

    &include=attachments,id,title

    balabalabala.....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic