Episode 06 • Theming With WP REST API

Filter By Category

In this episode we are going to use WordPress REST API and Vue.js to create a list of categories and filter our posts by them.

In the previous episode we created a filter that filters our posts by name. In this episode we are continuing that trend and we are going to be creating a filter that will filter our posts by specific category.

As you will see this is just a bit more complicated than name filter because we have to connect to our WP REST API to get the categories and then display them with Vue.js on our page.

Download code
  • Episode 01 • Duration 16:46

    Setup

  • Episode 02 • Duration 20:54

    Listing Posts

  • Episode 03 • Duration 12:54

    Add Images To API

  • Episode 04 • Duration 05:27

    Display Categories

  • Episode 05 • Duration 05:36

    Filter Posts By Title

  • Episode 06 • Duration 09:57

    Filter By Category

  • Episode 07 • Duration 14:09

    Making Filters Pretty

  • Episode 08 • Duration 09:03

    Getting Post Preview

  • Episode 09 • Duration 08:51

    Previous / Next Post

  • Episode 10 • Duration 06:58

    Making Previews Pretty

  • Episode 11 • Duration 08:28

    Getting Full Post

  • Episode 12 • Duration 06:53

    Wrapping Up Full Post

  • Episode 13 • Duration 07:06

    Custom Post Types

  • Episode 14 • Duration 09:17

    Adding Custom Fields

  • Episode 15 • Duration 05:06

    Add Image To Post Type

  • Episode 16 • Duration 19:03

    Simple Pagination

  • Episode 17 • Duration 05:10

    Loading Screens

  • Episode 01 • Duration 16:46

    Setup

  • Episode 02 • Duration 20:54

    Listing Posts

  • Episode 03 • Duration 12:54

    Add Images To API

  • Episode 04 • Duration 05:27

    Display Categories

  • Episode 05 • Duration 05:36

    Filter Posts By Title

  • Episode 06 • Duration 09:57

    Filter By Category

  • Episode 07 • Duration 14:09

    Making Filters Pretty

  • Episode 08 • Duration 09:03

    Getting Post Preview

  • Episode 09 • Duration 08:51

    Previous / Next Post

  • Episode 10 • Duration 06:58

    Making Previews Pretty

  • Episode 11 • Duration 08:28

    Getting Full Post

  • Episode 12 • Duration 06:53

    Wrapping Up Full Post

  • Episode 13 • Duration 07:06

    Custom Post Types

  • Episode 14 • Duration 09:17

    Adding Custom Fields

  • Episode 15 • Duration 05:06

    Add Image To Post Type

  • Episode 16 • Duration 19:03

    Simple Pagination

  • Episode 17 • Duration 05:10

    Loading Screens