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

    (@jleuze)

    Hi, you can do this using a conditional tag, like this:

    if ( is_front_page() ) {
    	if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); }
    }
    Thread Starter Bastiano

    (@bastiano)

    ok in this way displays only on the home page , in case you want to display on all other pages excluding the home ?, I entered this code, right?

    Thanks again

    <?php
    if (is_page(‘page1’)) {
    if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow( “adv03”, “” ); }
    }
    if (is_page(‘page2’)) {
    if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow( “adv03”, “” ); }
    }
    if (is_page(‘page3’)) {
    if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow( “adv03”, “” ); }
    }
    ?>

    Plugin Author Josh Leuze

    (@jleuze)

    Sorry, I gave you the wrong code. You don’t need to specify each page unless you only need it on certain page.

    To show it on all but the homepage, use this:

    if ( !is_front_page() ) {
    	if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); }
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude Front Page’ is closed to new replies.