Yes, you can do this with multiple slideshows. You need to use the meteor_slideshow()
function though and you need to specify the slideshow using the slideshow’s slug, not the title in an array.
For ease of use, I’d suggest checking for the page’s slug, and loading a slideshow with a matching slug. Here is a basic example.
<?php if ( function_exists( 'meteor_slideshow' ) ) {
if ( is_page( 'about-us' ) ) {
meteor_slideshow( "about-us", "" );
} elseif ( is_page( 'contact-us' ) ) {
meteor_slideshow( "contact-us", "" );
}
} ?>
You could even make that more dynamic by grabbing the page’s slug, checking for a slideshow with the matching slug, and load a slideshow only if there is a match.
Thanks for the reply, Lets say i have 4 pages i want the slider to appear on, Each page with its own slide images and example of the pages are: About Us | Contact Us | Projects News | Events …can i do it like this for it to work…Thanks
<?php if ( function_exists( 'meteor_slideshow' ) ) {
if ( is_page( 'about-us' ) ) {
meteor_slideshow( "about-us", "" );
if ( is_page( 'contact-us' ) ) {
meteor_slideshow( "contact-us", "" );
if ( is_page( 'projects-news' ) ) {
meteor_slideshow( "projects-news", "" );
} elseif ( is_page( 'events' ) ) {
meteor_slideshow( "events", "" );
}
} ?>
Yeah, that will work, but only use if
for the for the first conditional and elseif
for the rest:
<?php if ( function_exists( 'meteor_slideshow' ) ) {
if ( is_page( 'about-us' ) ) {
meteor_slideshow( "about-us", "" );
} elseif ( is_page( 'contact-us' ) ) {
meteor_slideshow( "contact-us", "" );
} elseif ( is_page( 'projects-news' ) ) {
meteor_slideshow( "projects-news", "" );
} elseif ( is_page( 'events' ) ) {
meteor_slideshow( "events", "" );
}
} ?>
You could also end that with an else
if you want a default slideshow or static image if a slideshow isn’t specified.
Thanks you soo much…I’ve a bunch of things to learn i’ve 7 gig of HTML and PHP tutorial, I’m just not finding time for myself..By the way what you recommend i learn PHP or HTML..?
I don’t have much to recommend for HTML, I learned that one piece at a time as I needed it, I guess I would suggest getting in the habit of examining the source code of sites you like. But CSS Tricks is a great place to learn CSS, and you’ll learn a lot of HTML and jQuery in the process. For PHP, this video series might be a good place to start.
JLeauze…Thanks i really appreciate what u’ve done for me…Thanks again.