Custom Fields
Re-Envisioned
Support General Saving problems

  • Creator
    Topic
  • #1863
    Flikweert
    Participant

    Hi,

    I have a problem with saving data from a cloneable group.
    I have the following code;

    /**
    			 * Tab: Keuze buttons
    			 */
    			array(
    				'id' => 'buttons',
    				'clone' => true,
    				'type' => 'group',
    				'max_clone' => 3,
    				'tab' => 'buttons',
    				'fields' => array(
    					array(
    						'name' => 'Titel',
    						'desc' => '',
    						'id' => 'button_title',
    						'type' => 'text',
    						'size' => 50
    					),
    					array(
    						'name' => 'Link',
    						'desc' => 'Selecteer de pagina die moet worden weergegeven.',
    						'id' => 'button_link',
    						'type' => 'post',
    						'post_type' => 'page',
    						'field_type' => 'select_advanced',
    						'placeholder' => 'Selecteer een pagina',
    						'query_args' => array(
    							'post_status' => 'publish',
    							'posts_per_page' => - 1,
    						),
    					),
    				)
    			),

    When saving the page, the value of 'button_link' is stored in the database. 'button_text' is not saved. I tested this with the following code after all fields are filled in the WP admin;

    $buttons = rwmb_meta('buttons', null, get_option('page_on_front'));
    						foreach($buttons as $button){
    							echo '<a href="'. get_permalink($button['button_link']) .'"><span>'. $button['button_title'] .'</span></a>';
    						}

    With this result;
    Array ( [button_link] => 206 ) Array ( [button_link] => 271 ) Array ( [button_link] => 215 )

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #1867
    Anh Tran
    Keymaster

    It seems the version of group extension is old. Please update the Group extension to the latest version 1.0.3 which has a fix for this.

    #1869
    Flikweert
    Participant

    I installed the 'Meta Box Updater'. Can i get updates automatically with that?

    #1870
    Anh Tran
    Keymaster

    Yes, doesn't it show new updates available for group extension? Have you entered your API key in the Updater's settings page? Can you please check the current version of the group extension that you're using?

    #1871
    Flikweert
    Participant

    No Unfortunately. I entered my API key. Says 'Settings succesfully saved'.
    Current version of group extension: 1.0.1

    #1872
    Flikweert
    Participant

    I have also checked other websites. They also do not get updates.

    #1876
    Anh Tran
    Keymaster

    Hmm, the latest version is 1.0.3, so you should be able to see updates. Can you please click Check updates in Dashboard | Updates to force check for updates again?

    In case you still haven't seen updates, please go to your profile and re-download the extension. I will check the problem with updater again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Saving problems’ is closed to new replies.