Object type & show on
-
Hi I have a set of fields that I want to show on certain CPTs and on a specific page template
Is that possible without duplicating code
'object_types' => array('page', 'cpt1','cpt2' ), 'show_on' => array( 'key' => 'page-template', 'value' => 'my_page_template.php' ),
Results in it only showing the template.
Thinking, whilst typing, that probably is a case for ‘show_on_cb’ but I haven’t got my head around what to code yet.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Object type & show on’ is closed to new replies.