wordpressapipostswordpress-featured-image

How do I retrieve featured posts using the Wordpress API (v1)?


I'm trying to use the Wordpress API (version 1 - not the new Rest API) to retrieve blog posts from various sites. However, I noticed that it was not retrieving the "featured" posts, only normal ones.

The API call I am using is: https://public-api.wordpress.com/rest/v1/sites/$site/posts

Is there a way to retrieve all the posts (normal and featured)?
Thank you!


Solution

  • User tried and confirmed to be working

    https://developer.wordpress.com/docs/api/1/get/sites/%24site/posts/

    There's a Query Parameter called 'sticky'.