• Resolved lilqhgal

    (@lilqhgal)


    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/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Yes I tried that Stefan, but did not work either. However I have found out what the problem is. I was using <!–raw–> tags which disabled any shortcode in the page, including yours.

    May be useful to know for others. I have been struggling with WP inherent ability to change my html and tried to bypass the system using the above tags, but to no avail since things keep changing anyway.

    I suppose the bottom line is: there is nothing wrong with your plugin!

    Regards

    Claudio

    Plugin Author Stefan Boonstra

    (@stefanboonstra)

    I’m glad to hear you were able to figure it out!

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Conditinal statement to display slidshow?’ is closed to new replies.