Conditinal statement to display slidshow?
-
I’m using several slideshows on one page template and displaying them with the PHP call. I am setting up a page for a client so she will be adding photos but I have created the slideshows ahead of time. What kind of conditional if statement could I wrap the PHP code in to check to see if there are any images in the given slideshow and only return my html if it has photos?
Something like:
<?php // if slideshow 498 has photos, return: //?> <h2><?php get_custom_field('slideshow_title_1', TRUE); ?></h2> <p><?php get_custom_field('slideshow_desc_1', TRUE); ?></p> <?php do_action('slideshow_deploy', '498'); ?> <?php // else, do nothing; //?>
https://www.ads-software.com/extend/plugins/slideshow-jquery-image-gallery/
- The topic ‘Conditinal statement to display slidshow?’ is closed to new replies.