get_posts() is a function for creating multiple loops. It retrieves a list of latest posts or posts matching criteria.
It makes use of the WP_Query class to fetch posts.
Stack Exchange network consists of 180 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn moreget_posts() is a function for creating multiple loops. It retrieves a list of latest posts or posts matching criteria.
It makes use of the WP_Query class to fetch posts.
created |
11 years, 8 months ago |
viewed |
32 times |
active |
9 years, 9 months ago |
editors |
1 |
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.