Metabox in custom post type & page template
-
Hi!
I know it’s possible to show a metabox in a custom_post_type and at the same time in the pages.
I also know that I can filter so that the metabox is only visible in the pages that use a particular page template.Is it possible to combine these 2 options?
This means that this metabox is displayed in ‘my_custom_post_type’
and also on the pages that use ‘my_page_template’.Something like this:
'show_on' => array( array( 'key' => 'post-type', 'value' => 'my-post-type' ), array( 'key' => 'page-template', 'value' => 'my-page-template.php' ), array( 'key' => 'page-template', 'value' => 'other-page-template.php' ), ),
Gracias
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Metabox in custom post type & page template’ is closed to new replies.