Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • in reply to: Conditional Login working slowly. #6567
    ismail
    Participant

    Hi, here is the sample code i used in my example:
    http://kodesolution.net/test/page-metabox-backup.zip

    Just unzip and check how it works.

    Thanks
    ismail

    in reply to: How to Display Metaboxes According to the Current Post Format #4673
    ismail
    Participant

    Hi, now problem solved.

    Thanks
    ismail

    in reply to: How to Display Metaboxes According to the Current Post Format #4653
    ismail
    Participant

    Hi,

    I just copied the following code from
    https://metabox.io/docs/meta-box-conditional-logic/

    Code:

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes )
    {
    	$meta_boxes[] = array(
    		'id' => 'brand_product',
    		'title' => 'Brands and Products',
    		'post_types' => array( 'post', 'page' ),
    		'context'	=> 'normal',
    		'priority'	=> 'high',
    		// Conditional Logic can be applied to Meta Box
    		// In this example: Show this Meta Box by default. Hide it when post format is aside
    		'hidden' => array( 'post_format', 'aside' ),
    		'fields' => array(
    			array(
    				'id'	=> 'brand',
    				'name'	=> 'Brand',
    				'desc'	=> 'Pick Your Favourite Brand',
    				'type'	=> 'select',
    				'options' => array(
    					'Apple' 		=> 'Apple',
    					'Google' 		=> 'Google',
    					'Microsoft' 	=> 'Microsoft'
    				)
    			),
    			array(
    				'id' 	=> 'apple_products',
    				'name'	=> 'Which Apple product that you love?',
    				'type'	=> 'radio',
    				'options' => array(
    					'iPhone' 	=> 'iPhone',
    					'iPad'		=> 'iPad',
    					'Macbook'	=> 'Macbook',
    					'iWatch'	=> 'iWatch'
    				),
    				// Conditional Logic can applied to fields
    				// In this example: Show this field by default, 
    				// hide it when user selected different value than 'Apple' on brand select field
    				'hidden' => array( 'brand', '!=', 'Apple' )
    			)
    		)
    	);
    	return $meta_boxes;
    } );

    Thanks
    ismail

    in reply to: How to Display Metaboxes According to the Current Post Format #4651
    ismail
    Participant

    Hi,

    At first thank you for your reply. I tried your examples given here:
    https://metabox.io/docs/meta-box-conditional-logic/

    But conditional login is not working anymore. Please help me.

    Thanks
    ismail

Viewing 4 replies - 1 through 4 (of 4 total)