I'm working on a study site in WordPress and I'm using custom post types.
Custom Post Type Course is responsible for creating the courses, displayed in
single-courses.php, where the basic information of the cuso is displayed, this Custom Post has two taxonomies:
categories and tags.
Custom Post Type Lesson creates the course lessons and is displayed in
I need to display the contents of the Custom Post Type Lesson in the Custom Post Type Course and I am not able to do that.
Remembering that the slug of the Custom Post Type Course is
my-site.com/course, where all the courses are displayed and
my-site.com/course/course-name where the course information is presented.
Course name and the lesson should follow the same structure