Site icon Hip-Hop Website Design and Development

Hierarchical Customized Put up Varieties

I want to have the next taxonomy construction:

web site.com/programs/course-name/pathway/pathway-name

The area is such that any explicit course could be accomplished by taking quite a few completely different pathways – completely different module constructions.

The next URLS would work as such:

web site.com/programs

reveals a listing of programs

web site.com/programs/course-name

will comply with a template e.g. single-course.php, exhibiting title, content material and a listing of the pathways related to this course.

web site.com/programs/course-name/pathways/

will comply with a template e.g. archive-pathway.php, exhibiting course-name and a listing of pathways (not be used a lot however will nonetheless have to work)

web site.com/programs/course-name/pathways/pathway-name

will comply with a template, e.g. single-pathway.php, exhibiting the course-name title, the pathway-name title and content material for this pathway.

The recordsdata right here could also be incorrect whereby I must be utilizing taxonomy-{}.php or in any other case as acceptable, as an alternative of single-{}.php.

My query: is it potential to arrange the above hierarchy inside WordPress? In that case, please present some code to register_taxonomy or register_post_type as acceptable to assist me get began.

I can’t discover how to do that elsewhere however am fairly positive that is how programs within the TutsPlus community use WordPress.