[wp-trac] Re: [WordPress Trac] #3682: is_home() returns FALSE when
using a static page as your front page, should return TRUE
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 23 10:28:06 GMT 2007
#3682: is_home() returns FALSE when using a static page as your front page, should
return TRUE
--------------------------------------+-------------------------------------
Reporter: johnbillion | Owner: anonymous
Type: defect | Status: reopened
Priority: high | Milestone: 2.2
Component: Template | Version: 2.1
Severity: normal | Resolution:
Keywords: dev-feedback 2nd-opinion |
--------------------------------------+-------------------------------------
Comment (by markjaquith):
Talked it out with a few people and here's my proposal:
{{{is_front()}}} represents the front of the site, whether blog or page.
{{{is_home()}}} is left untouched and represents the main blog view (where
ever it appears)
This gives you all the logic you need.
Front of site, showing a page:
{{{is_front() && is_page()}}}
Front of site, showing the blog:
{{{is_front() && is_home()}}}
Blog, not on front of site:
{{{!is_front() && is_home()}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3682#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list