Skip to content

Instantly share code, notes, and snippets.

@danemorgan
Created September 10, 2013 10:23
Show Gist options
  • Save danemorgan/6507540 to your computer and use it in GitHub Desktop.
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.
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