Each page template has rules that determine for what type of pages it should be applied. Every template may have multiple rules or no rules at all, which allows you to apply it globally or individually.

Global Template Rules

Rules defined for page template have global effect. E.g. if you set rule to apply it for Page post type, then it will be applied for all pages across a whole website.

Custom Rules

For each post, page or custom post type as well as standard and custom taxonomy term, it is possible to define custom template rules. This metabox appears on edit post or edit term pages. These rules take priority over global rules.

It is possible to disable applying global page template by picking "Disable Custom Template" option for Template field.

Additionally, Custom Template metabox notifies about possible global rules that may be applied for the current post or term.

Global Template Rule Options

For each page template rule, the following params are available:

Status

Determines either this rule is enabled or disabled. Possible options: Enabled, Disabled.

Priority

Sets the order of global rules to be considered for the currently requested page. Rule with a lower number will be processed first. It is a numeric value from 1 to 999.

Request

This is the actual page type to which the current template should be applied. Read more about request types in this article.

Post Terms

Allows to limit the coverage to the selected post categories, tags or custom taxonomies assigned to a post type selected for Request option. Evidently, this option is available only if one of the post types has been selected for Request option.

Post Formats

Allows to limit the coverage to the selected post formats only. Available options: Standard, Image, Video, Quote, Link. This option is available for the regular blog posts (post type "post") only.

User

Allows to limit the coverage to the selected user conditions only. Available options: Logged In, Logged Out and all available user Roles.

Custom Template Rule Options

The following params are available for custom post or term:

Status

Determines either this rule is enabled or disabled. Possible options: Enabled, Disabled.

Priority

Sets the order of custom rules to be considered for the currently requested page. Custom rules are always processed before global rules, so this priority sets the order between custom rules only. A rule with a lower number will be processed first. It is a numeric value between 1 and 999.

Template

Allows to pick a specific template from the existing page templates. Except the available page templates, there are 2 special options:

  1. Default - allows to bypass custom template rules in order to apply global rule.
  2. Disable Custom Template - disables global rules for this particular post or term.

User

Allows to limit the coverage to the selected user conditions only. Available options: Logged In, Logged Out and all available user Roles.

Recent Posts