WordPress.org

Ready to get started?Download WordPress

Forums

JSON REST API (WP API)
[resolved] post GET request not returning terms correctly for pages (3 posts)

  1. Jesse Overright
    Member
    Posted 4 months ago #

    When I request a JSON object for a specific page using /wp-json/posts/<page_id>/ the terms key is left blank, even if categories or tags have been added to the page.

    Am is using the API incorrectly or is this a bug in including page terms in the API?

    https://wordpress.org/plugins/json-rest-api/

  2. dunar21
    Member
    Posted 3 months ago #

  3. Jesse Overright
    Member
    Posted 3 months ago #

    Turns out pages don't have categories or tags enabled by default. Enough time has passed that I don't even remember the context of this question, so I'll assume it was a fault of my own and not the plugin! Great plugin BTW.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.