Created
February 21, 2014 13:54
-
-
Save tomhemsley/9134605 to your computer and use it in GitHub Desktop.
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
<?php | |
if (is_page() == 123) { | |
echo do_shortcode("[metaslider id=XXX]"); // Slideshow to show on page ID 123 | |
} | |
else if (is_page() == 456) { | |
echo do_shortcode("[metaslider id=XXX]"); // Slideshow to show on page ID 456 | |
} | |
else if (is_page() == 789) { | |
echo do_shortcode("[metaslider id=XXX]"); // Slideshow to show on page ID 789 | |
} | |
else if (is_home()) { | |
echo do_shortcode("[metaslider id=XXX]"); // Slideshow to show on the home page | |
} | |
else { | |
echo do_shortcode("[metaslider id=XXX]"); // Default slideshow to display on other pages | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment