WordPress.org

Ready to get started?Download WordPress

Forums

Cyclone Slider
Conditional statement for template file (1 post)

  1. JCIstevens
    Member
    Posted 1 year ago #

    I'm using Cyclone sliders on my archive pages as follows:

    <div class="slideshow">
    <?php echo do_shortcode('[cycloneslider id="'.$category_name.'-slideshow"]') ?>
    </div>

    However, some archive pages won't have slideshows, so I need to test to see if there are any slideshows matching the current category. Something like:

    If '.$category_name.'-slideshow is defined
    echo do shortcode
    else
    nothing

    Any thoughts? Thanks!

    http://wordpress.org/extend/plugins/cyclone-slider/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.