Home Forums General Issues Displaying Sliders


Displaying Sliders

  • Hi There,
    Thanks for a great plugin! I have used it to display workshop events on specific pages and it works perfectly. I added the below code to my content-page.php

    <!– If selected show Old Workshops block –>
    <?php if( get_field(‘older_workshops’)) { ?>
    <div class=”row”>
    <div class=”span12″>
    <?php get_template_part(‘templates/blocks/block’, ‘older’); ?>
    </div><!– Span12 ends –>
    </div><!– Row ends –>
    <?php } ?>

    I am now trying to do the same thing but say when the Home Slider field is ticked, show the chosen slider on my home page with the code below but it doesn’t seem to be working, can you tell me where I am going wrong?

    <!– If home page slider is selected –>
    <?php if( get_field(‘home_slider’))
    echo do_shortcode(“[royal_slider id=”1″]”);
    <?php endif; ?>

    Thank you

Viewing 1 post (of 1 total)

The topic ‘Displaying Sliders’ is closed to new replies.