Using ‘show_on’ with an array of page templates, can’t get it to work…
-
Hello, I love this plugin for theme development.
My issue: I can’t get the ‘show_on’ filter to function with an array of page templates.
Example:
'object_types' => array( 'post', 'portfolio', 'page' ), 'show_on' => array( 'key' => 'page-template', 'value' => array( 'page.php', 'single.php', 'single-portfolio.php', 'page-portfolio.php', 'home.php', 'page-html_header.php' ) ),
When I use that example, the metabox is does not appear on any of the templates listed.
If I delete the ‘show_on’ filter, the metabox appears correctly, but on every template..
Thanks for your help.
Andy
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using ‘show_on’ with an array of page templates, can’t get it to work…’ is closed to new replies.