[wp-testers] Conditional tags not working

Austin Matzko if.website at gmail.com
Sun Jan 17 05:30:15 UTC 2010


On Sat, Jan 16, 2010 at 11:21 PM, Nathan Rice <ncrice at gmail.com> wrote:
> As this post points out:
> http://weblogtoolscollection.com/archives/2010/01/16/fix-for-is_home-is_archive-not-working/
>
> conditional tags like is_home(), is_page, is_archive(), etc., are all
> seemingly not working. I've noticed this as well (running 2.9.1).
>
> I believe that it might work in some circumstances (like in the loop?), but
> I am currently running into the problem when trying to conditionally do
> something in the theme's functions.php file.

Could you be more specific about what you're trying to do?  I wouldn't
expect them to work when the theme's functions.php file is included,
for example, because that happens before the page query is even
parsed.


More information about the wp-testers mailing list