[wp-hackers] is_front_page should have it's own template file

Aaron D. Campbell aaron at xavisys.com
Tue Apr 22 19:52:06 GMT 2008

I suppose I see the point.  While it would be handy in my cases, it 
would be less handy for others.  Ticket closed.

Alexander Beutl wrote:
> Both are nonsense.
> sorry for this harsh answer, I don't want to offend, but as I understand it,
> you don't see the obvious point in this.
> you'd need a static_front_page.php and a index_front_page.php since it isn't
> the templates choise if the frontpage displays the_loop() or just a page.
> Is you use only front_page.php this will result in the theme breaking
> whenever someone doesn't agree with the theme authors choise for what the
> frontpage has to be used for.
> Today you need a if... else... check for checking wether a page is frontpage
> or not.
> after your change - you'll need it too, but in another file.
> That just makes no sense.
> Imagine I create a front.php which does displays the loop and is layouted
> for that and you try displaying a page in it... no good idea if I offer a
> page.php which is layout for exactly this.
> If I create a front.php which is made for static pages the_loop wont be used
> and therefor it will not work at all if you try using it as index
> Just my 2ct.
> 2008/4/22, Aaron D. Campbell <aaron at xavisys.com>:
>> Good point.  In order to keep backwards compatibility, if the user uses
>> posts as the front page, it should really go:
>> front.php -> home.php -> index.php
>> If the user uses a static page:
>> customTemplate -> front.php -> page.php -> index.php
>> I attached a new diff to the ticket:
>> http://trac.wordpress.org/attachment/ticket/6801/6801.002.diff
>> Would that make more sense?
>> Otto wrote:
>>> Yeah, I see that, I'm just trying to grasp where you want it fitted
>>> into the hierarchy.
>>> Look at those cases again. Are you thinking of this sort of change?
>>> Case 2: Static front page.
>>> - Template is custom Page Template fallback to front.php fallback to
>>> page.php fallback to index.php.
>>> The reason I ask is that I'm not certain how to handle front.php in
>>> the default case, where the main blog posts are the front page. Would
>>> it only be used for the static front page case?
>>> My viewpoint is that a template name like that should have a well
>>> defined place in a theme, since a theme can include them. So
>>> what/where would it make sense for a theme to include as the front
>>> page?
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

Aaron D. Campbell

More information about the wp-hackers mailing list