[wp-trac]
Re: [WordPress Trac] #7715: With Static home page enabled,
Posts page won't use a custom page template.
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 9 04:20:44 GMT 2008
#7715: With Static home page enabled, Posts page won't use a custom page template.
------------------------+---------------------------------------------------
Reporter: miloandrew | Owner: anonymous
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Template | Version: 2.6.1
Severity: normal | Resolution: invalid
Keywords: |
------------------------+---------------------------------------------------
Comment (by miloandrew):
Thanks very much! Sorry to have logged a bug. No one responded on the
forum.
I had actually looked at the pages that you quoted, but they didn't really
help me to figure it out. You stating that home.php was the template to
work with allowed me to find this page, which spells it out perfectly:
http://codex.wordpress.org/User:Ramiy/Conditional_Tags/is_home
-->
[[BR]]
is_home
Wordpress 2.1 handles this function differently than prior versions - See
static Front Page. If you select a static Page as your frontpage (see
is_front_page()), the is_home() tag will be applied to your "posts
page".[[BR]]
<--
Thanks again,
A
Replying to [comment:1 Viper007Bond]:
> When you pick a Page to be used to display the latest posts, only it's
URL gets used. `is_page()` will return `FALSE` for example (also note it
doesn't use the Page template).
>
> `home.php` is the file you'll want to setup / edit.
>
> http://codex.wordpress.org/Template_Hierarchy [[BR]]
> http://codex.wordpress.org/Conditional_Tags
--
Ticket URL: <http://trac.wordpress.org/ticket/7715#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list