Support Forum ยป User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • bdthemesbdthemes
    Participant

    same problem me too after updated to 5.2.6.

    <?php
    $ep_widget_icon = rwmb_meta( 'ep_widget_icon', 'type=image_advanced&size=standard' );
    foreach ( $ep_widget_icon as $widget_icon ) { 
    $ep_widget_icon_url = esc_url($widget_icon["full_url"]);
    }
    ?>
    <img src="<?php echo $ep_widget_icon_url; ?>" alt="" class="ep-widget-icon" bdt-svg>

    Warning: Invalid argument supplied for foreach() in wp-content\plugins\meta-box\inc\fields\image.php on line 166

    in reply to: Conditional Logic Custom Callback not working for me #6143
    bdthemesbdthemes
    Participant

    I understand it, Thanks for your help ๐Ÿ™‚

    in reply to: Conditional Logic Custom Callback not working for me #6113
    bdthemesbdthemes
    Participant

    Hello Nguyen, Thanks for your reply. You told whole metabox in condition but I want to show/hide one field for depend on one customizer setting. So how can do it?

    For example:

    I want to show/hide toolbar option depend on this customizer field:

    get_theme_mod( 'orphan_toolbar'); // This return true/false
    

    I want visible this metabox field when i get true from get_theme_mod( 'orphan_toolbar'). My field code look like:

    array(
    	'name'	   => 'Toolbar',
    	'id'	   => $prefix . "toolbar", 
    	'type'     => 'checkbox',
    	'desc'     => 'Enable or disable the toolbar for this page.',
    	'tab'      => 'layout',
    	'visible' => [what condition i need to set for it?],
    ),
    
Viewing 3 posts - 1 through 3 (of 3 total)