Viewing 1 replies (of 1 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi Sebastian, there is a template tag for the slideshow that checks to see if Meteor Slides is installed:

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>

    If you needed to display an extra div with the slideshow only if it is installed you could do it like this:

    <?php if ( function_exists( 'meteor_slideshow' ) ) {
    
    	echo '<div id="extra">';
    
    		meteor_slideshow();
    
    	echo '</div>';
    
    } ?>

    But the function doesn’t check for slide posts first, it’s assumed there will be slide posts.

    If you wanted to have the template tag output nothing if there are no slide posts, you would have to customize the slideshow template to check the number of posts.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Meteor Slides] Test if slider active’ is closed to new replies.