Episode 04 • Creating Svelte, Sapper and WordPress Website

Handling Categories

In this episode of we are going to learn how to handle categories from WordPress in our Sapper for Svelte app.

So first we are going to list our WordPress categories in our Sapper and Svelte app. An then of course we wanna display the posts from those categories once the user clicks on a certain category.

However, as you will learn in this video, this will not be the preferred of doing this, so I will dedicate one episode in the future to refactor this code and make it better and more performat. But that is not to say that this method will not be valuable on your Svelte and Sapper journey - because it definitely will be.

Download code

Wanna ask a question about this video?

Like This Video?

Consider supporting me on Patreon.

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

  • Episode 01 • Duration 12:46

    Fetching The Posts

  • Episode 02 • Duration 16:44

    Post Details And Environment Variables

  • Episode 03 • Duration 20:53

    Pagination And Sass Support

  • Episode 04 • Duration 22:15

    Handling Categories

  • Episode 05 • Duration 28:50

    Refactoring - Making It SSR Ready

  • Episode 06 • Duration 15:25

    Navigation And Pages

  • Episode 01 • Duration 12:46

    Fetching The Posts

  • Episode 02 • Duration 16:44

    Post Details And Environment Variables

  • Episode 03 • Duration 20:53

    Pagination And Sass Support

  • Episode 04 • Duration 22:15

    Handling Categories

  • Episode 05 • Duration 28:50

    Refactoring - Making It SSR Ready

  • Episode 06 • Duration 15:25

    Navigation And Pages