Hi there Tom, still fine-tuning my portfolio site and things start coming together.
I have successfully used hooks to show a slideshow below the header (in single posts only) with this code
<?php
if ( is_single() ) : ?>
gallery shortcode
<?php endif; ?>
I have disabled showing the featured image in single posts with css. But now, if there is no image gallery, I get this error message: [RoyalSlider Error] No post attachments found.
What I want to do is to show the featured image instead of the slider, so I need some sort of statement that says: if we are on a single post and the slider gallery exists, then show it, else show the featured image. How do I write that?
Thanks in advance
-
This topic was modified 7 years, 1 month ago by
Susanne.
-
This topic was modified 7 years, 1 month ago by
Susanne.
-
This topic was modified 7 years, 1 month ago by
Susanne.
-
This topic was modified 7 years, 1 month ago by
Susanne.