- This topic has 1 reply, 2 voices, and was last updated 2 years, 4 months ago by .
What is the syntax for hiding a (group) field when another field (type=’post’) is null?
I’ve tried several different variations like this on my group field:
'hidden' => array('post', '!=', null),
where ‘post’ is the metabox id of a sibling field. e.g.:
array( 'name' => __('Post'), 'id' => 'post', 'type' => 'post', 'field_type' => 'select_advanced', 'post_type' => array('recipe', 'post'), 'placeholder' => 'Select post', 'desc' => 'A recipe or post that appears in the list.' ),
- You must be logged in to reply to this topic.