[wp-hackers] Re: check category template

Mindshare Studios info at mindsharestudios.com
Thu Jan 17 16:49:27 GMT 2008

Yes, the behavior is fine - I just used the is_category function to solve my
problem. Just didn't know that one existed ;-)


-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Chris Poteet
Sent: Thursday, January 17, 2008 9:32 AM
To: wp-hackers at lists.automattic.com
Subject: [wp-hackers] Re: check category template

> The template function in_category('x') will return true even if you are
> viewing the category page itself (not a post within it). Is there a way to
> determine if you are looking at post within a category or the category
> listing itself?

That sounds like appropriate behavior.  If you're viewing the page
that has the category that should return true don't you think?

More information about the wp-hackers mailing list