WP_Query Arguments: Status, Order and Pagination
read more
Categories

WP_Query Arguments: Status, Order and Pagination


In this part of the series on Mastering WP_Query, you’ll learn about some of the arguments you can use with the WP_Query class, namely those for: status, order, pagination.

You can use these arguments to fetch scheduled posts from the database, to query attachments, to amend the way posts are ordered and what they’re ordered by, to specify how many posts are displayed, and much moreBut before you can do this, you need to understand how arguments work in WP_Query.A Recap on How Arguments Work in WP_QueryBefore we start, let’s have a quick recap on how arguments work in WP_Query.