[wp-testers] Archive of pages uses home.php template

Andrew Nacin wp at andrewnacin.com
Sun Apr 3 15:58:24 UTC 2011

On Apr 3, 2011 11:53 AM, "Otto" <otto at ottodestruct.com> wrote:
> That sounds correct to me. The post_type isn't a template trigger, it
> doesn't affect which template gets used anywhere, really. So it's
> seeing a more-or-less home type query, which would use home.php.

Yeah, I don't see a bug here either. Given a site that is home by default,
post_type would only change that if has_archive is attached (and it isn't
for pages). Otherwise it's like a query var that has an effect on the query
but not on the main flags, and therefore not on the template.


More information about the wp-testers mailing list