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?
<?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; //?>
- The topic ‘Conditinal statement to display slidshow?’ is closed to new replies.