WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] Choose Slideshow via Page-title? for diffferent silde shows? (2 posts)

  1. grimissimo
    Member
    Posted 1 year ago #

    Hey ho,

    im trying to tale meteor slider for a headerimage for every page a different slideshow,
    in the faq it says to put:

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "robots", "" ); } ?>

    in my header.php

    my question now is, if it is possible to let put something like:

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "<strong><?php echo get_the_title(); ?></strong> ", "" ); } ?>

    so that it will always be shown the slideshow what has the pagetiltle in the name...
    anyone knows around?
    I would be thankful!
    Arno

    http://wordpress.org/extend/plugins/meteor-slides/

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    You have to load it by the slideshow slug, so the page title wouldn't work, it would be uppercase with spaces, so it wouldn't match the slideshow slug. Instead, you want to use the page slug, and create slideshows with matching slideshow slugs. So then you can have it load the slideshow that matches that page.

    Here's a code snippet that will check for a slideshow that matches the page slug and loads that or falls back to a default slideshow.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic