[theme-reviewers] Custom home page in the theme

Chip Bennett chip at chipbennett.net
Mon Sep 9 19:04:51 UTC 2013


Indeed. This is my current method:

if ( 'posts' == get_option( 'front_page_displays' ) ) {
    include( get_home_template() );
} else {
    // Custom front-page markup goes here
}


On Mon, Sep 9, 2013 at 2:58 PM, Stanko Metodiev <stanko at metodiew.com> wrote:

> From what I know you have to have condition statement where you can check
> if static homepage is selected. Will check later if you want, but now I'm
> away from pc :)
>
> powered by Android
> On Sep 9, 2013 9:51 PM, "Abhik Biswas" <abhik at itsabhik.com> wrote:
>
>> Chip,
>> When a front-page.php is present is a theme, won't it take precedence
>> over the page selected at front page display settings, according to Template
>> Hierarchy <http://codex.wordpress.org/Template_Hierarchy>?
>>
>> I never tested it though.
>>
>>
>> On Mon, Sep 9, 2013 at 11:55 PM, Chip Bennett <chip at chipbennett.net>wrote:
>>
>>> Yes, that's what front-page.php for.
>>>
>>> The one caveat is that, even when including a front-page.php template,
>>> Themes must still support the user configuration for front page display of
>>> either a static page or the blog posts index.
>>>
>>>
>>> On Mon, Sep 9, 2013 at 1:59 PM, priyanshu mittal <
>>> priyanshu.mittal at gmail.com> wrote:
>>>
>>>> Hey I have gone through blackbird theme on repository  which uses the
>>>> custom home page template, means, on the theme activation the custom home
>>>> page gets displayed in place of regular index post page...  can I do the
>>>> same thing in my theme
>>>>
>>>> _______________________________________________
>>>> theme-reviewers mailing list
>>>> theme-reviewers at lists.wordpress.org
>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>
>>>>
>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130909/1b26a640/attachment.html>


More information about the theme-reviewers mailing list