WordPress Custom Query / Episode02 /

Sorting

In this tutorial about WordPress Custom Query we are going to learn how to sort results that we get from our custom query.

In this episode we are going to get familiar with order and orderby properties of WP_Query object. With those properties we are going to be able to tell our custom query how to sort our data and by which values.

We are also going to learn about meta_key and meta_value. Those are used to sort our results by custom fields that we may have for our posts or pages or any other type of data.

Wanna ask a question about video?

Like This Video?

Consider supporting me on Patreon.

...or you can share this video, that also helps ;)

Get in touch