If I use the code you posted, where would I substitute slug name which is also page name? I have two slide shows for the header – one for services page (with slideshow slug “services”, and the other for all the other pages (with slideshow slug “home”. I couldn’t get the code to work. Thanks. Site url with 1 slideshow showing in header is: https://utopiahomeservices.com/
<?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”, “” );
}
} ?>