Episode 03 • Theming With WP REST API

Add Images To API

In this episode we are going to learn how to add images to our WordPress REST API and then display those images with Vue.js.

We are going to be using standard WordPress functionality to get the URLs of our images, and then we are going to return that data via function in our functions.php file.

As you will see in this tutorial series we are going to manipulate WP REST API quite a bit to get the data that we want, from just one API request and just one API endpoint. That will make our theme much faster because of the fewer requests to database and the REST API.

Of course after that is all done we will display said images using Vue.js.

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