Episode 03 • WordPress Custom Query

Comparing

In this WordPress Custom Query tutorial we are going to learn how to display data from our custom query that matches certain condition using meta_compare and meta_value properties.

Now we are going to learn how to compare the results we get from our WordPress Custom Query and display only the data that matches certain conditions. We are going to do that by learning about two new properties.

The first property is meta_compare which allows us to define operator for our comparison, and the second is meta_value to which we give the value that needs to be compared.

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