Madatac Wordpress Templates
As with the current state of WordPress, custom post templates are only supported via themes and not plugins. To be able to use the new feature your theme needs to have a template with the tag “Post Template Name: TemplateName”. If your theme does not have any templates you can copy the sample templates provided in the folder templates/sample-post-templates in this plugin. To understand how this works please download the free child theme for Actions from here: Actions Child – this can be used out of the box if desired.
WordPress will work through the template hierarchy and use the template file it comes across first. So if you want to create a custom template for your acme_product custom post type, a good place to start is by copying the single.php file, saving it as single-acme_product.php and editing that.
Opcode Cache Wordpress Templates
WordPress Download Manager Pro has integrated template system to control how download package links and pages should look like. There are 3 types of templates: Link Template, Page Template and Email Template.
Create and Use WordPress Template Parts
A call to get_template_part with just the slug parameter tries to load a template file with the slug.php filename. Thus, a call to get_template_part(‘content’) tries to load content.php. And a call to get_template_part(‘header’ ,‘widgets’) tries to load header-widgets.php. See a pattern here? The term slug, refers to the name of the template file, minus the .php extension, because WordPress already assumes that it’s a PHP file.