Forum Replies Created
-
AuthorPosts
-
October 19, 2024 at 12:04 AM in reply to: ✅WYISWG editor do not work inside nested group on some instances #46722
Cecil Ashitey
ParticipantSorry to push this, but is there any ETA on when the update will be pushed out?
October 16, 2024 at 9:36 PM in reply to: ✅WYISWG editor do not work inside nested group on some instances #46700Cecil Ashitey
ParticipantHi
We are seeing instances of the plugin affecting the "Visual" tab when attempting to add content to a page.
I understand that an update to the plugin will resolve the current issues. However, because it's critical that this issue is resolved, are you able to share a timeline for when the update will be made live, please?
Thanks in advance.
January 18, 2022 at 9:50 PM in reply to: ✅Use same custom field with two page templates with slight variation in wp admin #33314Cecil Ashitey
ParticipantHi Long Nguyen,
I was able to use MB Include Exclude but at the same time, I am thinking if I can switch places of the boxes when I change the template.
For example
Template1 has section1 which has box 1 and box2, Section2 has box3 and box4
Template2 has section1 which has box1, section2 has box2 and box3Thanks
January 18, 2022 at 1:58 PM in reply to: ✅Use same custom field with two page templates with slight variation in wp admin #33303Cecil Ashitey
ParticipantThanks, Long Nguyen
For the information, I would proceed with MB Include Exclude.January 17, 2022 at 2:34 PM in reply to: ✅Use same custom field with two page templates with slight variation in wp admin #33282Cecil Ashitey
ParticipantHi,
Thanks for the reply.
Yes I have two page templates but i want to use the same field value and same field id. Following is the varition i want to use.
varition one for template 1:-$meta_boxes[] = [ 'title' => 'Section One', 'id' => 'section1', 'post_types' => ['page'], 'context' => 'after_title', 'visible' => array('page_template','=','template-1.php'), 'fields' => [ [ 'type' => 'select', 'id' => 'field_one', 'options' => range_options(), 'multiple' => false, 'placeholder' => 'Select an Item', 'columns' => 6, ], [ 'visible' => array( 'field_one' , '=', 'field_123' ), 'name' => 'Title', 'id' => 'one_title', 'type' => 'text', ], [ 'type' => 'select', 'id' => 'field_two', 'options' => range_options(), 'multiple' => false, 'placeholder' => 'Select an Item', 'columns' => 6, ], [ 'visible' => array( 'field_two' , '=', 'field_456' ), 'name' => 'Title', 'id' => 'two_title', 'type' => 'text', ], ] ];Variation 2 for template 2 :
$meta_boxes[] = [ 'title' => 'Section One', 'id' => 'section1', 'post_types' => ['page'], 'context' => 'after_title', 'visible' => array('page_template','=','template-2.php'), 'fields' => [ [ 'type' => 'select', 'id' => 'field_one', 'options' => range_options(), 'multiple' => false, 'placeholder' => 'Select an Item', ], [ 'visible' => array( 'field_one' , '=', 'field_123' ), 'name' => 'Title', 'id' => 'one_title', 'type' => 'text', ], ] ]; $meta_boxes[] = [ 'title' => 'Section Two', 'id' => 'section2', 'post_types' => ['page'], 'context' => 'after_title', 'visible' => array('page_template','=','template-2.php'), 'fields' => [ [ 'type' => 'select', 'id' => 'field_two', 'options' => range_options(), 'multiple' => false, 'placeholder' => 'Select an Item', ], [ 'visible' => array( 'field_two' , '=', 'field_456' ), 'name' => 'Title', 'id' => 'two_title', 'type' => 'text', ], ] ];I am able to set field value in one template and when I switch templates it has that value saved which is what I am looking for.
The issue is with the condition-based visibility of the fields. I mean when I select an option from the dropdown then on the 1st template it displays the subfields associated with it but it fails to do the same when I switch the template.
-
AuthorPosts