Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 2,964 total)
  • Author
    Posts
  • in reply to: Nested Groups in Settings #2923
    Steve
    Keymaster

    @jason– You can always use an empty HTML field to fill up space in the 12 column grid.

    in reply to: Nested Groups in Settings #2918
    Steve
    Keymaster

    @jason– I’m not 100% sure how you want the layout, but I removed one the groups and it looks pretty good. Let me know what you think:

    piklist('field', array(
      'type'    => 'group',
      'field'   => 'visit-menu',
      'label'   => 'Visit Menu',
      'fields'  => array(
            array(
              'type'      => 'textarea',
              'field'     => 'visit-text',
              'label'     => 'Visit Description',
              'columns'   => 12,
              'attributes'=> array(
                'rows'      => 4
              )
            ),
            array(
              'type'      => 'text',
              'field'     => 'visit-link-text',
              'label'     => 'Visit Link Text',
              'columns'   => 6,
              'sanitize'  => array(
                array(
                  'type'      => 'text_field'
                )
              )
            ),
            array(
              'type'    => 'text',
              'field'   => 'visit-link-url',
              'label'   => 'Visit Link URL',
              'columns' => 6,
              'validate'=> array(
                array(
                  'type'    => 'url'
                )
              )
        ),
        array(
          'type'      => 'group',
          'field'     => 'internet',
          'label'     => 'Internet Campus',
          'fields'    => array(
            array(
              'type'      => 'textarea',
              'field'     => 'internet-text',
              'label'     => 'Internet Description',
              'columns'   => 12
            ),
            array(
              'type'      => 'text',
              'field'     => 'internet-phone',
              'label'     => 'Internet Phone Number',
              'columns'   => 4,
              'sanitize'  => array(
                array(
                  'type'      => 'text_field'
                )
              )
            )
          )
        )
      )
    ));
    
    in reply to: Nested groups problem #2916
    Steve
    Keymaster

    Same here. 😉

    in reply to: Nested Groups in Settings #2915
    Steve
    Keymaster

    The Piklist grid is 12 columns. All fields per row need to add up to 12. It looks like you have 20 columns.

    in reply to: WorkFlow Tab only if the post isn't draft anymore #2912
    Steve
    Keymaster

    @Darlan ten Caten– Not yet… I think we can put something together for you in the next day.

    in reply to: How to create select with posts choices #2906
    Steve
    Keymaster

    @countryipblocks

    You only need to use the Piklist function if you are going to parse an array of data. Since you are manually creating the choiçes array (list), you can just including it in the array:

    ,'choices' => array(
      'none' => 'Choose your country'
      ,'ai' => 'Anguilla'
      ,'ag' => 'Antigua and Barbuda'
    

    Does that make sense?

    in reply to: Displaying add-more fields #2905
    Steve
    Keymaster

    @cosmocanuckAlways work with WP_Debug on. This will help you when developing. As soon as I turned on WP_Debug, I saw the error which was in single-recipe.php you had a typo: $get_stylesheet_directory() should be get_stylesheet_directory().

    in reply to: Work with custom tables #2904
    Steve
    Keymaster

    @mfrie01– The next version of Piklist will support CRUD with frontend forms. List Tables are not ready yet and have been moved down the roadmap. If you want access to the next version of Piklist, please email us at [email protected] and ask to be part of the Beta team.

    in reply to: Piklist Checker Doesn't Seem to Be Working #2903
    Steve
    Keymaster

    @azizultex– Welcome to the Piklist community! Can you be a bit more specific? What is not working?

    in reply to: How to create select with posts choices #2895
    Steve
    Keymaster

    @igor– Thank you so much! Glad we can help.

    If you have the time, we would appreciate it if you could write the same thing at WordPress.org >

    in reply to: How to create select with posts choices #2893
    Steve
    Keymaster

    @igor– Welcome to the Piklist community!

    The code you’re using to create the choices just takes the data from get_posts() and formats it correctly for Piklist, so it looks like this:

    ,'choices' => array(
     'key' => 'value'
     ,'key'=> 'value'
     ,'key' => 'value'
    )
    

    To add some instructions as the first choice you can us the standard PHP Union operator, a plus sign +. So your new choices parameter would look like this:

    ,'choices' => array('none' => 'Choose your page') + piklist(
                  get_posts(
                     array(
                      'post_type' => 'post'
                      ,'orderby' => 'post_date'
                     )
                     ,'objects'
                   )
                   ,array(
                     'ID'
                     ,'post_title'
                   )
                )
    

    Let us know if you need any more help.

    in reply to: Duplicate Basic Tab via User Guide: Add Settings Page Tabs #2891
    Steve
    Keymaster

    Great! Let us know is you need anymore help.

    in reply to: Nested groups problem #2888
    Steve
    Keymaster

    This will appear in the next major version of Piklist Demos. Thanks!

    in reply to: Displaying add-more fields #2887
    Steve
    Keymaster

    It seems to be working now… but I really didn’t do anything. I just downloaded the files and uploaded them again.

    Let me know if you need more help.

    in reply to: Duplicate Basic Tab via User Guide: Add Settings Page Tabs #2886
    Steve
    Keymaster

    @countryipblocks– Welcome to the Piklist community!

    To add fields to your default_tab, do NOT include Tab: Basic in the comment block. Any field files that don’t have the Tab: parameter set will automatically be added to the default_tab.

    If you only have one field file, then Piklist will not create tabs.

    I updated the tutorial to make this clearer.

    Let us know if that helps.

Viewing 15 posts - 2,071 through 2,085 (of 2,964 total)