WordPress.org

Forums

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

  1. Jesse Overright
    Member
    Posted 1 year 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. aryanduntley
    Member
    Posted 11 months ago #

  3. Jesse Overright
    Member
    Posted 11 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP REST API (WP API)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.