Reply To: All Post Type Field Sets show when using default WP template (i.e. page.php)

Author Replies
multipliertech # Posted on January 23, 2015 at 3:47 pm

Hi Dave and Trav,

I seem to be having the same problem too.

Say I have 3 templates – page.php, page-one.php, page-two.php.

The field sets will display accordingly on page-one.php and page-two.php templates. Perfect.

However, if I choose the “Default template” (page.php), which has no field sets assigned to it, the page displays all the field sets that I have set for page-one.php and page-two.php.

Here’s an example.

My visibility setting of a field set for page-one.php is as follow:

1. Post types –
[selected] Include all specific post types
[ticked] Pages

2. Templates –
[selected] Include all specific templates
[ticked] page-one.php

3. Taxonomies –
[selected] Include only in specific taxonomies
[ticked] none

4. User profiles –
[selected] Include only in specific roles
[ticked] none

This field set will display correctly when I select the page-one.php template, and will not display on other templates. But it will be displayed when page.php template is selected.

If I have the same visibility settings for page-two.php. The field sets for page-one and page-two will both be displayed when page.php template is selected.

I would appreciate any help with this.

Cheers

Kat

Latest From the Blog

MasterPress 1.4.1 is now available

27th May 2024

This update addresses backwards compatibility issues that were introduced in the previous update. There were some edge cases where PHP 7 had issues and it didn’t work at all on PHP 5.6. We have now changed it so that the PHP 8 compatibility changes will now only affect PHP 8 and will be more thorough… 

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Three AM