Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 3,376 through 3,390 (of 3,958 total)
  • Author
    Posts
  • in reply to: Group field not showing in metabox #3125
    Anh TranAnh Tran
    Keymaster

    Oh, there is a syntax error in your code. Here is the correct one:

    $meta_boxes[] = array(
    		'id'     => 'infos_supp_adherent',
    		'title'  => "Informations sur l'Adhérent",
    		'post_types' => array( 'adherent' ),
    		'fields' => array(
    			array(
    				'name'     => "Nom",
    				'id'       => $prefix . "adherent_nom",
    				"type"     => "text",
    				"required" => true,
    				"clone"    => false,
    			),
    			array(
    				'name'     => "Prénom",
    				'id'       => $prefix . "adherent_prenom",
    				"type"     => "text",
    				"required" => true,
    				"clone"    => false,
    			),
    			array(
    				'name'       => "Date de Naissance",
    				'id'         => $prefix . "adherent_naissance",
    				"type"       => "date",
    				"required"   => true,
    				"clone"      => false,
    				"dateFormat" => "dd/mm/yy",
    			), // Error was here when you close the outter bracket
    			array(
    				'name'   => "Coordonnées",
    				'id'     => $prefix . "adherent_coordonnees",
    				'type'   => 'group',
    				//'required' => true,
    				'clone'  => true,
    				'fields' => array(
    
    					array(
    						'name'     => 'Information',
    						'id'       => $prefix . "adherent_coordonnees_valeur",
    						'type'     => 'text',
    						'required' => true,
    						'clonable' => false,
    					),
    				),
    			),
    		),
    	);
    in reply to: Groups within Tabs #3124
    Anh TranAnh Tran
    Keymaster

    That's nice. I'm slowly working on extensions to make them safe to be included in plugins/themes to make sure they are backward compatible. Currently the Group is done and more extensions will come.

    in reply to: rwmb_meta not working in wp_get_recent_posts #3115
    Anh TranAnh Tran
    Keymaster

    I think it's not a bug. The helper function rwmb_meta works with current post object, e.g. the global $post;. In your loop, you don't use setup_postdata( $post ); to make the current post in the loop the global, so it won't work.

    To resolve this, simply add the 3rd parameter to rwmb_meta like this:

    rwmb_meta( 'radix_eventstart', '', $recent['ID'] );

    in reply to: MB Conditional logic is compatible with image_select? #3114
    Anh TranAnh Tran
    Keymaster

    Dear buzzm,

    We've fixed this bug, please update Group to the latest version, and apply this patch by replace Image Select to the latest version related to this issue:

    https://github.com/rilwis/meta-box/issues/860

    The commit here, you can replace file now if you really need, of course, you can wait for the official release:
    https://github.com/rilwis/meta-box/commit/3f39e4b65ef02373677ac221464cf11e273fdf45

    Cheers!

    in reply to: Does MB Admin Columns work with MB Term Meta? #3113
    Anh TranAnh Tran
    Keymaster

    It's not supported for now. I will add support for terms in a future version.

    in reply to: How to implement multiple-level nested group #3104
    Anh TranAnh Tran
    Keymaster
    in reply to: Insertion manually for group fields #3094
    Anh TranAnh Tran
    Keymaster

    The group's value is an array of sub-fields' values and is saved as a single entry in the database. You can use the following code:

    $value = array(
        'sub_field_value_1',
        'sub_field_value_2',
        // ...
    );
    update_post_meta( $post_id, 'group_id', $value );
    in reply to: Nested Group Meta not working #3093
    Anh TranAnh Tran
    Keymaster

    Can you try the latest version of Meta Box (on Github) and Group?

    in reply to: How to implement multiple-level nested group #3092
    Anh TranAnh Tran
    Keymaster

    Hi Eric,

    Please see an example here: http://pastebin.com/wGg9sPRQ

    Here is another example: http://pastebin.com/Xj4J3DiA

    in reply to: Nested Group Meta not working #3080
    Anh TranAnh Tran
    Keymaster

    You can automatically update the plugin using the Meta Box Updater or manually download the extension, unzip and upload to your site, overwrite old files.

    in reply to: Nested Group Meta not working #3074
    Anh TranAnh Tran
    Keymaster

    Hi @brightcreations,

    I've just released the new version of MB Group which supports for multi-level nested groups. Please try it and let me know the result.

    PS: Due to JavaScript problem, the media field and WYSIWYG field couldn't be cloned in multi-level nested groups. So please don't use them.

    in reply to: class 'RWMB__Field' not found #3073
    Anh TranAnh Tran
    Keymaster

    Last time I included both the extension's main file and the group class. I've just pushed a new version of the plugin with fix for this (and a big improvement for supporting multi-level nested groups).

    Please try it and let me know if you find any bug. Thanks.

    in reply to: Shortcodes inside Grouped WYSIWYG Editor #3069
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you put a shortcode in WYSIWYG field, you need to render it automatically. Here is a thread on Github about that. Briefly, you need to use this code in the frontend:

    <?php echo do_shortcode( rwmb_meta( 'field_id' ) ); ?>

    in reply to: class 'RWMB__Field' not found #3068
    Anh TranAnh Tran
    Keymaster

    Let me check again. The last time I checked it worked for me.

    in reply to: class 'RWMB__Field' not found #3063
    Anh TranAnh Tran
    Keymaster

    Could you please use the development version on Github? And use the latest version of Group extension?

    Let me know if you still see the bug.

Viewing 15 posts - 3,376 through 3,390 (of 3,958 total)