Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 3,406 through 3,420 (of 3,702 total)
  • Author
    Posts
  • in reply to: Older Versions #2330
    Anh TranAnh Tran
    Keymaster

    Can you post the code you're using to register meta boxes? Are you using rwmb_meta_boxes filter or the old way using admin_init?

    in reply to: Issue after update to 4.8.1 - Group field #2326
    Anh TranAnh Tran
    Keymaster

    Hi lemonydesign, please update to 1.0.5 version. It has a fix for the problem.

    Sorry for this bug!

    in reply to: Older Versions #2325
    Anh TranAnh Tran
    Keymaster

    PS: In case you want to use older version, please download them here https://wordpress.org/plugins/meta-box/developers/

    in reply to: Older Versions #2324
    Anh TranAnh Tran
    Keymaster

    Hi, please update to 4.8.1. I've just fixed this problem today.

    Sorry for the bug!

    in reply to: Wysiwyg editor in clonable groups and nested clonable groups #2304
    Anh TranAnh Tran
    Keymaster

    Hi,

    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.

    in reply to: MB Settings #2264
    Anh TranAnh Tran
    Keymaster

    I'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.php file (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:

    in reply to: MB Settings #2263
    Anh TranAnh Tran
    Keymaster

    Sorry for the delay. I'm replicating the problem on my localhost now.

    in reply to: Display taxonomy or User meta #2258
    Anh TranAnh Tran
    Keymaster

    The user field stores only user ID. To get more info about the user, please use the function get_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}";
    }
    Anh TranAnh Tran
    Keymaster

    I'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.

    in reply to: Display taxonomy or User meta #2250
    Anh TranAnh Tran
    Keymaster

    Can you please give more details? I'm not sure what you're going to do.

    Anh TranAnh Tran
    Keymaster

    Using get_term_meta is correct. The helper function rwmb_meta doesn'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_meta with the 3rd parameter set to false (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.

    in reply to: Difference between "taxonomy" and "taxonomy_advanced" #2248
    Anh TranAnh Tran
    Keymaster

    They're mostly the same except 1 point: taxonomy assigns terms to posts while taxonomy_advanced saves terms' IDs to post meta. One uses WP functionality and one uses post meta to store the value.

    in reply to: Meta Box Doesn't Show in Post #2247
    Anh TranAnh Tran
    Keymaster

    Template 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.

    in reply to: Meta Box Doesn't Show in Post #2241
    Anh TranAnh Tran
    Keymaster

    Do you use rwmb_meta function in the template files to view the meta data?

    in reply to: Only shows Import option #2240
    Anh TranAnh Tran
    Keymaster

    I'd like to add some debug code to check why that happens. Can you please send me the FTP info?

Viewing 15 posts - 3,406 through 3,420 (of 3,702 total)