if no slider output thumbnail
-
Hey Thomas!
I would like to output a slider if there is one with the same name as the title of my post. If there isn’t i would like my thumbnail of the post to show up instead.
I’ve tried with something like this:
<?php if ( function_exists( 'soliloquy_slider' ) ): soliloquy_slider( '<?php echo get_the_title($ID); ?>' ); ?> <?php else: ?> <a href="<?php the_permalink() ?>" title="<?php the_title() ?>"> <?php the_post_thumbnail() ?></a> <?php endif ?>
Any idea how to accomplish this?
Thanks!
/ Lowe
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘if no slider output thumbnail’ is closed to new replies.