[theme-reviewers] Use Static Front Page by Default for Reviews?
Justin Tadlock
justin at justintadlock.com
Sat Apr 23 16:08:40 UTC 2011
I test themes with a static front page and separate blog/home/posts page
all the time just to make sure they display things properly. Besides
proper template behavior, things to look out for might be:
* page title
* breadcrumbs
* navigation links
Another thing to note is that theme developers often mix up the
is_home() and is_front_page() conditionals. The theme ends up executing
code when it really wasn't meant to.
On 4/22/2011 9:57 AM, Chip Bennett wrote:
> I've run into Themes for which "home.php" was intended incorrectly to
> be used as a Static Front Page. (Granted, the one I'm remembering
> specifically was not a repository-hosted Theme.) But, it was cause
> enough for me to add it to my (personal) list of things to check.
>
> (And this is another unfortunate example of confusion-by-design, due
> to less-than-ideal nomenclature - probably as a result of the
> nomenclature being established while WordPress was still primarily a
> *blogging* application. But yes, confusion abounds. I answer this
> question more than once a week, between the WPORG support forums and
> wordpress.stackexchange.)
>
> Chip
>
> On Fri, Apr 22, 2011 at 9:48 AM, Otto <otto at ottodestruct.com
> <mailto:otto at ottodestruct.com>> wrote:
>
> On Fri, Apr 22, 2011 at 8:40 AM, Chip Bennett
> <chip at chipbennett.net <mailto:chip at chipbennett.net>> wrote:
> > 2) The Theme Developer mistakenly uses "home.php" instead of
> > "front-page.php" as the Front Page template, which causes the
> Blog Posts
> > Index to behave incorrectly when in a Static Front Page setup.
>
> There seems to be some confusion surrounding this.
>
> - home.php is used to display the main set of blog posts, wherever
> they happen to be. The fallback for it is index.php.
> - front-page.php is used to display the front page, regardless of
> whether it's a static page or the blog posts page. The fallback for it
> is also index.php, *unless* you have a static page as the front page,
> in which case it will use page.php and then index.php.
>
> In other words, home.php is always used for the main blog, never for a
> Static Page on Front. Including a home.php is not an error, if you are
> intending to only style the main blog area differently.
>
> -Otto
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> <mailto: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/20110423/36ba89a7/attachment.htm>
More information about the theme-reviewers
mailing list