When to use content-pagename.php?

Usually the format you see in themes are content-{$post_format-term}.php or content-{$pagename}.php, but it is not restricted to this formats. The naming convention can also differ to your liking as long as you keep it out of normal template hierarchy and then use get_template_part to call it correctly. These are not self standing templates, they cannot … Read more

Call get_template_part() custom permalink

Mapping of URL directly to a template file you describe (mapping URL to a file) is quite rare technique in WordPress, sometimes called static pages. It is rare because in general that’s not how WordPress works. It works by mapping URL to query variables to WP_Query to template hierarchy to template file. Going from URL … Read more