[wp-hackers] check to see if a post is in a category

Alex Hempton-Smith hempsworth at gmail.com
Tue Jun 8 00:13:33 UTC 2010


This isn't really the most appropriate mailing list for questions like this,
next time try the support forums (http://wordpress.org/support) or
#wordpress in IRC.

However, this is probably the function you're looking for:
http://codex.wordpress.org/Function_Reference/in_category

-- Alex  (Hempsworth)


On Tue, Jun 8, 2010 at 1:07 AM, Brian Fidler <fidler.brian at gmail.com> wrote:

> Is there a function to test to see if a post is in a specific category?
>
> I don't want to return all of the categories a post belongs to, but rather
> to identify if it belongs to one category.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list