From the course: WordPress: REST API
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Add dynamic related posts navigation - WordPress Tutorial
From the course: WordPress: REST API
Solution: Add dynamic related posts navigation
(upbeat tech music) - [Narrator] Welcome back! If you are able to solve the challenge I gave you in the previous movie, great! If not, that's fine because this was a really difficult challenge and I made it so on purpose because I wanted to push you and I want to show you that there's a lot going on when we work with the REST API. Now, like I said all the answers to all the questions you may have had as you work through it are available in the exercise files from the previous movies, but finding them is not all that easy because you have to pull pieces out from different script files and put them in to get everything to work. So, let me show you how I solve this challenge. Just a quick refresher. What we're looking for here is sending a request to the REST API for the three most recent posts based on the categories of the current post. So, we're really saying, give me the three most recent posts from these…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Four practical examples1m 24s
-
(Locked)
Read only: Load next post using REST API8m 23s
-
(Locked)
Cookie authentication: Front-end editing6m 21s
-
(Locked)
Basic standalone app7m 22s
-
(Locked)
JWT authentication: Third-party editing7m 13s
-
(Locked)
Challenge: Add dynamic related posts navigation4m 32s
-
(Locked)
Solution: Add dynamic related posts navigation5m 7s
-
(Locked)
-