• Hi Josh,

    First of all thanks a lot for the plugin! Is it possible to use the slider as featured image?

    I’m trying to show the featured image on the startpage (index.php) and the slider on the post-page. It works, but it shows always the same slider for each post. I do not know how I can add each post its own slider.

    I have put this code to my single.php file:
    <?php if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow(); } ?>

    This is the link to the website:
    https://jules.bplaced.net/

    Thanks!

    https://www.ads-software.com/plugins/meteor-slides/

Viewing 1 replies (of 1 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi, you can do this using multiple slideshows.

    There are a couple of ways to accomplish this. The simplest is to disable the featured images for the single post template in your theme and add the slideshows to your post content using the slideshow shortcode.

    But if you want the slideshow outside of the post content, or you want to have the slideshows be optional, with some posts showing featured images and some slideshows, you need to do this with a custom function.

    For a few slideshows you can add conditionals and check for a certain post, loading a certain slideshow on that post. To make more future proof, you make a function that gets the current post slug, checks for a matching slideshow slug, and then loads that slideshow. So if you make a slideshow that matches that post, it loads that, otherwise loads a featured image.

    Here is an example of how to do this for pages, it is very similar for posts: https://www.ads-software.com/support/topic/plugin-meteor-slides-slideshow-template-tag-page-slug-for-slideshow-slug?replies=6#post-2666422

Viewing 1 replies (of 1 total)
  • The topic ‘Slider as featured image’ is closed to new replies.