- This topic has 3 replies, 2 voices, and was last updated 8 years, 4 months ago by
obisean.
-
AuthorPosts
-
-
September 24, 2013 at 5:17 pm #1127
obiseanMemberHello,
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.
-
September 24, 2013 at 7:21 pm #1128
KevinKeymaster@obisean-
Can you post your code? This works for us as far as we have tested.
Thanks,
Kevin
-
September 24, 2013 at 9:50 pm #1129
obiseanMemberKevin,
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
-
September 24, 2013 at 9:51 pm #1130
obiseanMembersorry, I meant to say “on the Advanced tab of the Piklist Demo settings page”
-
-
AuthorPosts
- You must be logged in to reply to this topic.