• I don’t think this question have been asked if it have been asked then sorry i didn’t see it.. Is there a way to let every page have its slider..Like About Us, Contact Us and other pages excluding homepage…I tried this code but it wasn’t successful

    <?php if (is_page(‘4’) AND function_exists(‘meteorslider’)) { echo meteorslider(array(name=>”About Us”)); } ?>

    <?php if (is_page(‘5’) AND function_exists(‘meteorslider’)) { echo meteorslider(array(name=>”Contact Us”)); } ?>

    Someone should help me.

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

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

    (@jleuze)

    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.

    Thread Starter yesfree

    (@yesfree)

    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", "" );
    	}
    
    } ?>

    Plugin Author Josh Leuze

    (@jleuze)

    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.

    Thread Starter yesfree

    (@yesfree)

    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..?

    Plugin Author Josh Leuze

    (@jleuze)

    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.

    Thread Starter yesfree

    (@yesfree)

    JLeauze…Thanks i really appreciate what u’ve done for me…Thanks again.

    Plugin Author Josh Leuze

    (@jleuze)

    You’re welcome!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Meteor Slides] Slider For Different Pages’ is closed to new replies.