Forum Replies Created

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • in reply to: Displaying Content from Advanced Add-Mores #2133
    ianmuscat
    Member

    This worked – I can’t thank you enough! You may mark this issue as resolved.

    in reply to: CPT Frontends #2130
    ianmuscat
    Member

    Hi,

    I found the issue, I had publicly_queryable set to false!

    You can close this – thank you anyway.

    Ian

    in reply to: CPT Frontends #2127
    ianmuscat
    Member

    I 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

    in reply to: 'Editor' field within an 'Add More' field #2120
    ianmuscat
    Member

    Indeed it did – thank you so much for your help.

    in reply to: 'Editor' field within an 'Add More' field #2118
    ianmuscat
    Member

    Hi 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

    in reply to: 'Editor' field within an 'Add More' field #2113
    ianmuscat
    Member

    It 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

    ianmuscat
    Member

    Understood. Thank you for your help once again. This query is resolved.

    Regards,
    Ian

    ianmuscat
    Member

    Great! 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

Viewing 8 posts - 16 through 23 (of 23 total)