WordPress.org

Ready to get started?Download WordPress

Forums

JSON API
Get list of post titles (3 posts)

  1. monkeypunch3
    Member
    Posted 7 months 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 7 months 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 7 months ago #

    That did it. Thanks

Reply

You must log in to post.

About this Plugin

About this Topic

Tags