Created
September 10, 2013 10:23
-
-
Save danemorgan/6507540 to your computer and use it in GitHub Desktop.
Show posts on front page with front-page.php if the user has specifically selected show posts in the dashboard settings.
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 ( 'posts' == get_option( 'show_on_front' ) ) { // if user has selected posts to show on the front page | |
include( get_home_template() ); // use a post enabled home page template | |
} else { | |
// Custom static front-page markup goes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment