Saving problems
- This topic has 6 replies, 2 voices, and was last updated 9 years, 4 months ago by
Anh Tran.
-
AuthorPosts
-
December 4, 2015 at 4:21 PM #1863
Flikweert
ParticipantHi,
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 )
December 5, 2015 at 3:36 PM #1867Anh Tran
KeymasterIt 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.
December 5, 2015 at 3:42 PM #1869Flikweert
ParticipantI installed the 'Meta Box Updater'. Can i get updates automatically with that?
December 5, 2015 at 3:43 PM #1870Anh Tran
KeymasterYes, 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?
December 5, 2015 at 3:47 PM #1871Flikweert
ParticipantNo Unfortunately. I entered my API key. Says 'Settings succesfully saved'.
Current version of group extension: 1.0.1December 5, 2015 at 3:57 PM #1872Flikweert
ParticipantI have also checked other websites. They also do not get updates.
December 6, 2015 at 10:50 AM #1876Anh Tran
KeymasterHmm, 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.
-
AuthorPosts
- The topic ‘Saving problems’ is closed to new replies.