简体   繁体   中英

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!

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'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM