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)
    http://www.paviapress.it/downloads/aston-martin-5/

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

    <div>

    <?php
    $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 } ?>
    ?>
    </div>

    https://wordpress.org/plugins/simple-fields/

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