Organise WordPress Theme Templates with get_template_part() and Partials
Organise theme templates with get_template_part() When a theme grows, the same markup appears in many templates: the post card in the archive, the search results and the related posts, the hero section on several page templates. Copies are quick at first, and then a design change means editing six files. get_template_part() loads a partial template…