Created
October 4, 2012 21:29
-
-
Save scottnix/3836580 to your computer and use it in GitHub Desktop.
Thematic Shortcode for different sliders for pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function snix_childtheme_gallery() { ?> | |
<div class="custom-gallery"> | |
<?php | |
if ( is_front_page() ) { | |
echo do_shortcode("[shortcode 1]"); | |
} elseif ( is_page( 42 ) ) { | |
echo do_shortcode("[shortcode 2]"); | |
} elseif ( is_page( 43 ) ) { | |
echo do_shortcode("[shortcode 3]"); | |
} else { | |
// silence | |
} | |
?> | |
</div> | |
<?php } | |
add_action('thematic_abovecontainer', 'snix_childtheme_gallery'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment