Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterCan you post the code you're using to register meta boxes? Are you using
rwmb_meta_boxesfilter or the old way usingadmin_init?Anh Tran
KeymasterHi lemonydesign, please update to 1.0.5 version. It has a fix for the problem.
Sorry for this bug!
Anh Tran
KeymasterPS: In case you want to use older version, please download them here https://wordpress.org/plugins/meta-box/developers/
Anh Tran
KeymasterHi, please update to 4.8.1. I've just fixed this problem today.
Sorry for the bug!
February 16, 2016 at 12:36 PM in reply to: ✅Wysiwyg editor in clonable groups and nested clonable groups #2304Anh Tran
KeymasterHi,
Although we've been working on these 2 big issues, but there is not much in the progress, to be honest. Both issues are related heavily on JavaScript. We had a draft solution for cloning wysiwyg, but WP changes its code and it doesn't work anymore. We're working on using pure JavaScript to work with TinyMCE instead of using WP's code.
Regarding the group issue, we have a fix for Javascript to make nested group works. This will be finished soon.
Our plan in near future is:
- Finishing the development version on Github to release 3.8 version. It's a major change in the plugin core.
- Then work on wysiwyg issue
- Then group issue (probably in parallel if it isn't related to changes in 3.8 version).We're trying our best. Please be patient.
Anh Tran
KeymasterI've just checked the code and here is what I did:
1. This is how I structure a "test" plugin:

2. This is the code in the
test.phpfile (similar to your 1st file):<?php /** * Plugin Name: Test * Plugin URI: https://metabox.io * Description: Test * Version: 0.0.1 * Author: Rilwis * Author URI: http://www.deluxeblogtips.com */ // Load meta box and settings page extension include plugin_dir_path( __FILE__ ) . 'meta-box/meta-box.php'; include plugin_dir_path( __FILE__ ) . 'mb-settings-page/mb-settings-page.php'; // Load configuration include plugin_dir_path( __FILE__ ) . 'bl-settings.php';3. This is the content of the settings file:
<?php function bl_settings_pages( $settings_pages ) { $settings_pages[] = array( 'id' => 'bl-options', 'option_name' => 'bl_options', 'parent' => 'plugins.php', 'menu_title' => 'Test', 'submenu_title' => __( 'BeaverLodge HQ', 'fl-builder' ), ); return $settings_pages; } add_filter( 'mb_settings_pages', 'bl_settings_pages' ); function bl_options_meta_boxes( $meta_boxes ) { $meta_boxes[] = array( 'id' => 'fotoplugins', 'title' => __( 'Fotoplugins Settings', 'fl-builder' ), 'settings_pages' => 'bl-options', 'fields' => array( array( 'name' => __( 'Disable Gallery CPT', 'fl-builder' ), 'id' => 'gallery_cpt', 'type' => 'select', 'syd' => 'no', 'options' => array( 'no' => 'No', 'yes' => 'Yes', ), ), ), ); return $meta_boxes; } add_filter( 'rwmb_meta_boxes', 'bl_options_meta_boxes' );Note:menu_title in the settings file, so the menu appears in HTML but not visible cause it doesn't have a text.
4. This is the result:

Anh Tran
KeymasterSorry for the delay. I'm replicating the problem on my localhost now.
Anh Tran
KeymasterThe
userfield stores only user ID. To get more info about the user, please use the functionget_userdata:$group_value = rwmb_meta( 'histor' ); foreach( $group_value as &$v){ $user_id = $v['user']; $userdata = get_userdata( $user_id ); echo "{$v['date']} {$userdata->user_login} {$userdata->user_email}"; }February 1, 2016 at 10:42 AM in reply to: Using MetaBox Group with MB Term_Meta and programmatically writing MB Term_Meta #2253Anh Tran
KeymasterI've just fixed the problem with the group extension. The bug is in the JS code of Meta Box and the fix is available in the development version on Github. Please try it. It will be included in the next version of Meta Box.
Thanks.
Anh Tran
KeymasterCan you please give more details? I'm not sure what you're going to do.
January 31, 2016 at 2:58 PM in reply to: Using MetaBox Group with MB Term_Meta and programmatically writing MB Term_Meta #2249Anh Tran
KeymasterUsing
get_term_metais correct. The helper functionrwmb_metadoesn't work for term meta as it uses different API. I decided to use native WP function to get field's value.I think the 2nd nested array is created when you use
get_term_metawith the 3rd parameter set tofalse(which is default). Try using this:$values = get_term_meta( 'term_id', 'field_id', true );PS: I'm working on the group extension to make it works with Term Meta extension.
January 31, 2016 at 2:53 PM in reply to: Difference between "taxonomy" and "taxonomy_advanced" #2248Anh Tran
KeymasterThey're mostly the same except 1 point:
taxonomyassigns terms to posts whiletaxonomy_advancedsaves terms' IDs to post meta. One uses WP functionality and one uses post meta to store the value.Anh Tran
KeymasterTemplate files are PHP files inside your theme such as:
single.php,page.php. You can learn more about WP template files here.If you are not familiar with PHP to add code to template files, you can use shortcode to output the meta value in the post content. Simply add:
[rwmb_meta meta_key="FIELD_ID"]into your post content and you'll see it's displayed in the frontend when you view the post. For more information about the shortcode, please read this documentation.
Anh Tran
KeymasterDo you use
rwmb_metafunction in the template files to view the meta data?Anh Tran
KeymasterI'd like to add some debug code to check why that happens. Can you please send me the FTP info?
-
AuthorPosts