[wp-hackers] front-page.php always overrides home.php?

Otto otto at ottodestruct.com
Fri Nov 19 23:41:54 UTC 2010


On Fri, Nov 19, 2010 at 5:26 PM, Austin Matzko <austin at ilfilosofo.com> wrote:
>> BTW, Page Templates don't work for Posts set to be on Page urls.
>
> You're right.  That smells like a bug.

Not a bug. Expected consequence of the Template Hierarchy. It doesn't
load page templates for the main posts page because you wouldn't
expect it to do so. On the other hand, it does load the Page Template
for the front page, when you have a Page set to be the front page.
Templates apply to the content (i.e, the post) , not the URL it
resides on.

-Otto


More information about the wp-hackers mailing list