WordPress.org

Forums

JSON API
Return only a specific portion of POST (1 post)

  1. Allioli
    Member
    Posted 1 year ago #

    Hi, I'd like to modify the JSON and return ONLY some parts of the post according to the user request.
    I want this to return nothing: http://www.example.org/?json=1
    And this (or something similar) to return the content of a div with id "asdf" inside the post:
    http://www.example.org/?json=1&asdf

    Is this possible? May I use only "json_api_encode filter"? Thanks in advance. I'm such a newbie!

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags