From the course: WordPress: REST API
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Challenge: Add dynamic related posts navigation - WordPress Tutorial
From the course: WordPress: REST API
Challenge: Add dynamic related posts navigation
(upbeat music) - [Instructor] Time for one final challenge. This one requires quite a bit of work, so set aside some time and make sure you come at it with a fresh mind. In the exercise files for this movie you'll find a child theme called related child. Once the exercise is done, I want you to build out this child theme so that when you go to a single post and scroll down to the bottom of the post, you get this related posts section. And when you hit this related posts section, a query is sent to the REST API to return the three most recent posts from whatever categories the current post is in, that's what makes them related, they're all in the same categories. Those three posts are displayed below, and there are links you can click on them to go to the individual posts. What you have right now in your exercise files are the bones to get this to work but the functionality is not complete. So your job is to figure…
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)
-