Viewing 3 reply threads
  • Author
    Posts
    • #1543
      taishiziyi
      Member

      I have created a settings page using piklist and have two groups of fields that are add-more groups.

      Screenshot 1

      When I add information into either of the groups and then save the settings it duplicates the info from the first field in the group into the second field, creates a new (add-more) instance of the group and populates both of those fields with the data from the second field. It also makes two new instances of the second group, and populates one of them with the text “none”.

      Screenshot 2

      Here is the code used to create the fields:

      piklist( 'field', array(
      	'type'         => 'group',
      	'field'        => 'related_links',
      	'label'        => __( 'Related Links', 'cbts' ),
      	'columns'      => 6,
      	'add_more'     => true,
      	'fields'       => array(
      		array(
      			'type'       => 'text',
      			'field'      => 'link_text',
      			'label'      => __( 'Link Text', 'cbts' ),
      			'columns'    => 3
      		),
      		array(
      			'type'       => 'text',
      			'field'      => 'link_url',
      			'label'      => __( 'Link URL', 'cbts' ),
      			'columns'    => 3
      		)
      	)
      ));
      
      piklist( 'field', array(
      	'type'             => 'group',
      	'field'            => 'selected_feeds',
      	'label'            => __( 'Selected Feeds', 'cbts' ),
      	'columns'          => 6,
      	'add_more'         => true,
      	'fields'           => array(
      		array(
      			'type'           => 'text',
      			'field'          => 'feed_title',
      			'label'          => __( 'Feed Title' ),
      			'columns'        => 3
      		),
      		array(
      			'type'           => 'text',
      			'field'          => 'feed_url',
      			'label'          => __( 'Feed URL' ),
      			'columns'        => 3
      		),
      		array(
      			'type'           => 'select',
      			'field'          => 'feed_source',
      			'label'          => __( 'Feed Source' ),
      			'columns'        => 3,
      			'choices'        => array(
      				'none'          => 'None',
      				'abp'           => 'ABP News',
      				'cong_health'   => 'Congregational Health',
      				'christ_cent'   => 'Christian Century',
      				'eth_daily'     => 'Ethics Daily',
      				'sojourn'       => 'Sojourners',
      				'fellowship'    => 'The Fellowship',
      				'am_bap_church' => 'American Baptist Church',
      				'cnn'           => 'CNN',
      				'word'          => 'Word & Way',
      				'intl_min'      => 'International Ministries',
      				'natl_min'      => 'National Ministries',
      			)
      		)
      	)
      ));
      

      Any thoughts on what could be going on here?

    • #1546
      Steve
      Keymaster

      We cannot reproduce this issue.

      Please make sure you are running the latest version of Piklist and then delete your existing settings in your db (since they have an error in the array).

      Let us know if that fixes the issue.

    • #1549
      taishiziyi
      Member

      I have deleted the entry from the _options table and then de-activated and deleted Piklist. I then installed Piklist from the WordPress Plugin Repo (v0.9.3) and activated it. When I went to save data in the fields as shown in the previous screenshots I got the exact same problem as before.

      Here is the info from the DB entry in case that provides any insight:

      option_id: 767
      option_name: cbts_theme_settings
      option_value: a:2:{s:13:”related_links”;a:2:{i:0;a:1:{i:0;s:24:”Associated Baptist Press”;}i:1;a:1:{i:0;s:23:”http://www.abpnews.com/”;}}s:14:”selected_feeds”;a:3:{i:0;a:1:{i:0;s:0:””;}i:1;a:1:{i:0;s:0:””;}i:2;a:1:{i:0;s:4:”none”;}}}
      autoload: yes

    • #1551
      Steve
      Keymaster

      Zip up your piklist files and email to support @.

      We’ll take a look.

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