Support » Plugin: Simple Fields » show in front end only if the box is checked

  • Hi,
    I’ve installed the plugin and created a custom field with checkbox

    I want to show the <div> in frontend only if the custom field is checked
    this is a sample front-end page (the pics in sidebar it would be the custom field)

    this is my code. Can you tell me please what is wrong?


    $field_value = simple_fields_value(“box_video”);
    if (has_post_thumbnail()) { ?>
    <span class=”preview”>Video disponibile</span>
    <?php the_post_thumbnail( ‘product_page_image’ ); ?>
    <?php } ?>

  • The topic ‘show in front end only if the box is checked’ is closed to new replies.