[theme-reviewers] Custom home page in the theme

Otto otto at ottodestruct.com
Mon Sep 9 19:07:37 UTC 2013


Question: What's the benefit of that over including a home.php and a
custom Page Template for use by whatever static page the user chooses
to use?

-Otto


On Mon, Sep 9, 2013 at 2:05 PM, Chip Bennett <chip at chipbennett.net> wrote:
> Scratch that. Typed too fast:
>
> if ( 'posts' == get_option( 'show_on_front' ) ) {
>     include( get_home_template() );
> } else {
>     // Custom front-page markup goes here
> }
>
> The option is 'show_on_front', not 'front_page_displays'.


More information about the theme-reviewers mailing list