- This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago by
Steve.
-
AuthorPosts
-
-
August 1, 2014 at 6:23 am #2112
ianmuscatMemberHi,
I’m trying to create a metabox that has an ‘editor’ field within an advanced ‘add more’ field, however, I’m getting the rest of my fields at the top and the ‘editor’ at the bottom (outside of the add more field). Is the editor not able to be part of an add more field, and if not, is there something specific that needs to be done to get this to work properly?
Kindly let me know if you require any further information.
Thanks in advance,
Ian -
August 1, 2014 at 6:27 am #2113
ianmuscatMemberIt seems like someone else has encountered this issue (https://piklist.com/support/topic/text-editor-add_more-issue/).
Is there a temporary fix that I can use until this bug gets corrected?
Thanks once again and apologies for double-posting – I did not come across the aforementioned topic earlier.
Regards,
Ian -
August 1, 2014 at 9:08 am #2114
SteveKeymasterPlease post your code. This bug has already been fixed.
-
August 1, 2014 at 10:01 am #2118
ianmuscatMemberHi Steve,
Thanks for your quick reply. Kindly take a look at my code below.
<?php /* Title: My Piklist Test Description: My Description Post Type: piklist_test Order: 1 Lock: true Collapse: true */ piklist('field', array( 'type' => 'group' ,'field' => 'piklist_test_addmore' ,'add_more' => true ,'fields' => array( array( 'type' => 'text' ,'field' => 'piklist_test_title' ,'label' => __('Title','piklist') ,'description' => __('Enter a title for this test.','piklist') ,'help' => __('Enter a title for this test.','piklist') ,'attributes' => array( 'class' => 'large-text' ,'placeholder' => __('Enter title here','piklist') ) ,'on_post_status' => array( 'value' => 'lock' ) ,'sanitize' => array( array( 'type' => 'title' ,'context' => 'save' ) ) ) ,array( 'type' => 'editor' ,'scope' => 'post' ,'field' => 'piklist_test__content' ,'label' => __('Test Content','piklist') ,'description' => __('Enter content for this test.','piklist') ,'help' => __('Enter content for this test','piklist') ,'value' => '<h1>Headline.</h1><p>Some text here.</p>' ,'options' => array ( 'wpautop' => false ,'media_buttons' => true ,'tinymce' => true ,'quicktags' => true ) ) ,array( 'type' => 'file' ,'field' => 'piklist_test_media' ,'scope' => 'post_meta' ,'label' => __('Add Media','piklist') ,'description' => __('Add media for this test.','piklist') ,'help' => __('Add media for this test','piklist') ,'options' => array( 'modal_title' => __('Add Test Media','piklist') ,'button' => __('Add Media','piklist') ) ,'validate' => array( array( 'type' => 'limit' ,'options' => array( 'min' => 1 ,'max' => 1 ) ) ) ) ,array( 'type' => 'colorpicker' ,'scope' => 'post_meta' ,'field' => 'piklist_test_color' ,'label' => __('Test Color','piklist') ,'description' => __('Select a color for this test','piklist') ,'help' => __('Select a background color for this test','piklist') ,'attributes' => array( 'class' => 'text' ) ) ,array( 'type' => 'select' ,'field' => 'piklist_test_option' ,'value' => 'option-1' // Sets default to option-1 ,'label' => __('Test Layout','piklist') ,'description' => __('Choose an option for this test','piklist') ,'attributes' => array( 'multiple' ) ,'choices' => array( 'option-1' => __('Option 1','piklist') ,'option-2' => __('Option 2','piklist') ) ) ) ));Thanks once again,
Regards,Ian
-
August 1, 2014 at 1:53 pm #2119
SteveKeymaster@ianmuscat– We added an enhancement to Editors within groups. Download Piklist 0.9.4.6. Let us know if that fixes your issue.
-
August 1, 2014 at 2:01 pm #2120
ianmuscatMemberIndeed it did – thank you so much for your help.
-
August 1, 2014 at 2:04 pm #2121
SteveKeymasterAwesome! Closing this ticket.
-
-
AuthorPosts
- The topic ‘'Editor' field within an 'Add More' field’ is closed to new replies.