Last active
November 10, 2015 10:46
-
-
Save theStreets93/7a0454552854410855ff to your computer and use it in GitHub Desktop.
Wordpress - If page id or home page
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('page_ID_or_SLUG')): /* if wp page what you want, get content */ endif; ?> | |
<?php if(is_home()): /* if wp home get content */ endif; ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment