Episode 02 • WordPress Custom Query

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.

Download code
  • Episode 01 • Duration 19:41

    Basics

  • Episode 02 • Duration 10:51

    Sorting

  • Episode 03 • Duration 09:07

    Comparing

  • Episode 04 • Duration 18:12

    Taxonomy

  • Episode 05 • Duration 14:16

    meta_query

  • Episode 06 • Duration 15:19

    tax_query

  • Episode 07 • Duration 19:29

    Custom Filters

  • Episode 08 • Duration 16:50

    Custom Search

  • Episode 01 • Duration 19:41

    Basics

  • Episode 02 • Duration 10:51

    Sorting

  • Episode 03 • Duration 09:07

    Comparing

  • Episode 04 • Duration 18:12

    Taxonomy

  • Episode 05 • Duration 14:16

    meta_query

  • Episode 06 • Duration 15:19

    tax_query

  • Episode 07 • Duration 19:29

    Custom Filters

  • Episode 08 • Duration 16:50

    Custom Search