Episode 03 • Gatsby.js + WordPress

Creating Menus

In this episode I'm going to try to import WordPress menu into our Gatsby.js site, using WP REST API and GraphQL

Now we are going to crate a new React.js component which will serve as sort of partial on our site. By making it a component we will be able to display our main menu anywhere we want on the site. And by using GraphQL we will have access to all our menu items and the information stored in them.

Also I'm going to fix two mistakes that I made in the previous video.

Download code
  • Episode 01 • Duration 34:19

    Getting Posts And Pages

  • Episode 02 • Duration 19:34

    Listing Posts

  • Episode 03 • Duration 29:33

    Creating Menus

  • Episode 04 • Duration 09:24

    Pagination

  • Episode 05 • Duration 11:00

    Advanced Custom Fields

  • Episode 06 • Duration 15:38

    Displaying images

  • Episode 07 • Duration 09:56

    Deploying and Fixing Errors

  • Episode 01 • Duration 34:19

    Getting Posts And Pages

  • Episode 02 • Duration 19:34

    Listing Posts

  • Episode 03 • Duration 29:33

    Creating Menus

  • Episode 04 • Duration 09:24

    Pagination

  • Episode 05 • Duration 11:00

    Advanced Custom Fields

  • Episode 06 • Duration 15:38

    Displaying images

  • Episode 07 • Duration 09:56

    Deploying and Fixing Errors