Custom Query Arguments

Learn about the different arguments that can alter custom query results.

We looked at post_type and posts_per_page attributes of the custom query arguments in the previous lesson. In this lesson, we will explore some more query arguments that can be used to order, sort, and compare the query results.

Ordering

By default, the posts are ordered in DESC order to display the most recent posts. We can change this behavior using the order parameter set to ASC (which stands for ascending).

Get hands-on with 1400+ tech skills courses.