Filtering pages by page template

Pages can be filtered or restricted via using custom field filters.

Page templates are stored in a custom field called _wp_page_template and can be chaged on the page editor screen.

Filter by page template

To create any visual filter on the page templates, use the _wp_page_template custom field to create a custom field filter.

Restrict results to specific template

To make an invisible restriction, use a hidden type filter to restrict the results to a specific template.

If you don't know the tempalte name, make a visual filter (Radio) with the {get_values} pseudo variable, and the plugin will display the values in the preview. ↑See example above↑

Exclude results by specific template

Similarly as on the previous example, using the hidden type filter and the "NOT EXACTLY LIKE" operator will exclude all pages matching the given value.

Last updated

Copyright Ernest Marcinko