Viewing 3 reply threads
  • Author
    Posts
    • #1127
      obisean
      Member

      Hello,

      I am trying to place an Add More group (3 text fields) into a settings page, but I cannot get the information to save. I am currently using 0.8 b6, but I experienced the same behavior in b5. I can replicate this behavior in the Piklist Demo settings page. If I try to add information to the Add More group it does not stick. I have tried this on three separate installs with the same results.
      Single add more fields seem to save just fine.

      I checked the wp_options table and the data is not being saved to the option. Although I can see it in the transients.

    • #1128
      Kevin
      Keymaster

      @obisean-

      Can you post your code? This works for us as far as we have tested.

      Thanks,

      Kevin

    • #1129
      obisean
      Member

      Kevin,

      Here is my settings page registration:


      $pages[] = array(
      'page_title' => 'Manage Shows'
      , 'menu_title' => 'OBX Forum'
      , 'capability' => 'delete_users'
      , 'menu_slug' => 'obx-forum-shows'
      , 'setting' => 'obx-forum-show-settings'
      , 'icon' => 'options-general'
      , 'default_tab' => 'Manage Shows'
      );

      and here are the fields:


      <?php
      /*
      Title: Manage Seasons
      Setting: obx-forum-show-settings
      Order: 20
      Tab: Seasons
      */

      piklist('field', array(
      'type' => 'text'
      ,'field' => 'rowSeatsCustomSeasons'
      ,'label' => __('Add Seasons')
      ,'add_more' => true
      ,'attributes' => array(
      'class' => 'text'
      )
      ));

      piklist('field', array(
      'type' => 'group'
      ,'field' => 'CustomSeasonInfo'
      ,'add_more' => true
      ,'label' => __('Add Seasons')
      ,'fields' => array(
      array(
      'type' => 'text'
      ,'label' => 'Season Name'
      ,'field' => 'CustomSeasonInfoName'
      ,'columns' => 5
      )
      ,array(
      'type' => 'text'
      ,'label' => 'Price Per Seat'
      ,'field' => 'CustomSeasonInfoSeatPrice'
      ,'columns' => 3
      )
      ,array(
      'type' => 'text'
      ,'label' => 'Membership Price'
      ,'field' => 'CustomSeasonInfoMemershipPrice'
      ,'columns' => 3
      )
      )
      ));

      ?>

      Just to clarify, I am only having this issue on settings pages. Add more groups work fine as post meta.
      Also, I cannot get the Add-More Group, labeled “Group ~ List Example” on the Advanced tab of the Piklist Demo add-on to save information either. Let me know if I can provide any more info.

      Thanks

    • #1130
      obisean
      Member

      sorry, I meant to say “on the Advanced tab of the Piklist Demo settings page”

Viewing 3 reply threads
  • You must be logged in to reply to this topic.