Header/Footer Display Conditions - Missing CPTs
In BeTheme 29.0.5, could Header and Footer → Display Conditions → Singular discover public custom post types the same way the Single and Archive template picker does?
The dialog calls mfn_get_posttypes('tax'), which hard-codes Pages, Posts, Portfolio and Offer, plus Products when WooCommerce is active. A public plugin-registered CPT is missing even though it appears in the Single/Archive picker. The fixed list can also show Portfolio or Offer when the corresponding post type is disabled in Theme Options.
I tested a theme patch that appends eligible types using Mfn_Builder_Helper::get_post_types() and hides Portfolio/Offer when they are unregistered. It adds an “All” option under each additional CPT and keeps the existing taxonomy choices. On the front end it resolves an explicit CPT rule before inheriting the Page rule and preserves per-post overrides. The save routine compiles include/exclude rules separately and clears them when conditions are rebuilt, so a removed rule restores the previous header.
On a 29.0.5 staging site I verified that the native Header picker lists the custom CPT and omits the disabled types. Local PHP checks against the patched theme code covered assigning and removing the CPT rule, exclusions, per-post override precedence and the Page fallback. Could this be added upstream? I'm happy to provide the diff.
Comments
Hi,
I have passed it on to the dev team, and we will take a look at this.
Best regards