Displaying Custom Post Types – Templates and Querying
This is the 3rd and final article of our series on Custom Post Types (CPT). The topics we discussed in the first two were: Custom Post Types (how to create them) Custom Taxonomies In the first and second articles, we registered the testimonials custom post type and the testimonial_service custom taxonomy. We now have to display the testimonials on our site. So we will take a look at how to create a template for our testimonials, how to query them, and how to display them anywhere on our site. Default Custom Post Type Templates We created our CPT with the parameter has_archive set to true, which...