Forum Replies Created
-
AuthorPosts
-
ianmuscatMemberThis worked – I can’t thank you enough! You may mark this issue as resolved.
ianmuscatMemberHi,
I found the issue, I had
publicly_queryableset tofalse!You can close this – thank you anyway.
Ian
ianmuscatMemberI should probably also mention that the CPT described above is being created from a Plugin, and I am putting the ‘single-test.php’ (apologies for the mistake in the firsts post) file in the active theme’s root.
I tried looking at the Piklist Demos for clues but to no avail.
Thanks once again,
Ian
ianmuscatMemberIndeed it did – thank you so much for your help.
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
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,
IanJuly 31, 2014 at 4:09 pm in reply to: Difficulty Creating Metaboxes for a Specific Custom Post Type #2110
ianmuscatMemberUnderstood. Thank you for your help once again. This query is resolved.
Regards,
IanJuly 31, 2014 at 3:56 pm in reply to: Difficulty Creating Metaboxes for a Specific Custom Post Type #2108
ianmuscatMemberGreat! This worked – thank you so much for your help!
So just to make sure I understood this entirely – if Piklist is being used in a theme, I would need to add the ‘piklist’ directory in the theme root; if Piklist is being used in a plugin, I can just go ahead and create the ‘parts’ directory in the root of the plugin in question (no ‘piklist’ directory for plugins).
Many thanks.
Regards,
Ian -
AuthorPosts