Different slides per page but no slides for sub-pages
-
Hello,
I know it is possible to do different sliders per page, and i am using this code on my site , it works perfect.
<?php if ( function_exists( 'meteor_slideshow' ) ) { global $post; $ms_page_slug = $post->post_name; $ms_parent_id = get_post($post->post_parent); $ms_parent_slug = $ms_parent_id->post_name; $ms_slideshow_check = term_exists( $ms_page_slug, 'slideshow' ); $ms_parent_check = term_exists( $ms_parent_slug, 'slideshow' ); if ( !empty( $ms_slideshow_check ) ) { meteor_slideshow( $ms_page_slug, "" ); } else if ( !empty( $ms_parent_check ) ) { meteor_slideshow( $ms_parent_slug, "" ); } else { meteor_slideshow( "default", "" ); } } ?>
But my question is how do i NOT show any slides on sub-pages. for example when i am on the about-us page i could see the slides, but when i go to about-us/contact-us i do not want it to show.
Also i would like to know how to show it on the home page. I tried setting up a page slug with home and it did not work.
please let me know.
thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Different slides per page but no slides for sub-pages’ is closed to new replies.