Created
December 21, 2013 05:09
-
-
Save BeardedGinger/8065680 to your computer and use it in GitHub Desktop.
Get different templates based on whether or not the visitor is logged in
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
if ( is_user_logged_in() ) { | |
get_template_part( 'home', 'loggedin' ); | |
} else { | |
get_template_part( 'home', 'notloggedin' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment