WordPress.org

Forums

JSON API
Get list of post titles (3 posts)

  1. monkeypunch3
    Member
    Posted 1 year ago #

    Is there a way to get just a list of the post titles and not the content? I would like to show the complete list of posts to the user so they can choose which post to view but I don't want to download all the content of those posts.

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

  2. donysukardi
    Member
    Posted 1 year ago #

    Hi.. You can actually use the 'include' argument to just retrieve the title attribute.

    http://localhost/api/get_posts/?&include=title

  3. monkeypunch3
    Member
    Posted 1 year ago #

    That did it. Thanks

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