Forum Replies Created
-
AuthorPosts
-
February 19, 2019 at 11:20 PM in reply to: ✅Conditional logic does not work based on a taxonomy field #13407
Hansjakob Fehr
Participant… and here is the code:
function Buch( $meta_boxes ) { $meta_boxes[] = array( 'title' => 'Buch', 'context' => 'advanced', 'autosave' => true, 'visible' => array ( 'when' => array ( array('slug:tax_input[medium]', '=', 'buch' ), ), 'fields' => array( array( 'id' => 'format', 'type' => 'text', 'name' => 'Format', ), ), ); return $meta_boxes; } add_filter( 'rwmb_meta_boxes', 'Buch' ); function Projekt( $meta_boxes ) { $meta_boxes[] = array( 'title' => 'Projekt', 'context' => 'advanced', 'autosave' => false, 'fields' => array( array( 'name' => 'Datum', 'id' => 'datumProjekt', 'type' => 'date', 'columns' => 3, ), array( 'name' => 'Medium', 'id' => 'medium', 'type' => 'taxonomy_advanced', 'taxonomy' => 'medium', 'field_type' => 'select_advanced', 'columns' => 3, 'hidden' => array( 'levelSerie', '=', 'subS' ), ), ), ); } return $meta_boxes; } add_filter( 'rwmb_meta_boxes', 'Projekt' );February 19, 2019 at 11:14 PM in reply to: ✅Conditional logic does not work based on a taxonomy field #13406Hansjakob Fehr
ParticipantHi Anh
It has been some time since my question. Now I want to finally solve the problem. Unfortunately, the conditional logic does not work with taxonomy_advanced. With post_category it works fine. Could you look at my problem again?
Thanks and best regards
JacobNovember 30, 2018 at 4:44 PM in reply to: ✅Conditional logic does not work based on a taxonomy field #12392Hansjakob Fehr
ParticipantHi Anh
Thank you for your helping hand.
Here comes my code.
Thank you.
best regards
JacobNovember 29, 2018 at 11:58 PM in reply to: ✅Conditional logic does not work based on a taxonomy field #12370Hansjakob Fehr
ParticipantIt works also when i use post_category … but just when i use it in the category meta box.
Post_category with taxonomy field does not work.I dried it different ways:
//array( 'slug:post_category', 'in', array( 'buch' ) ),
//array( 'slug:tax_input[medium]', 'in', array( 'buch' )),
//array( 'slug:tax_input[medium]', '=', 'buch' ),
//array( 'medium', 'in', array( 'buch' )),
//array ('medium','=','buch', ),What do i wrong?
Thanks again.
Jacob -
AuthorPosts