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

Brian Fidler fidler.brian at gmail.com
Tue Jun 8 01:10:08 UTC 2010


thanks Alex,

that function worked.

brian

On Mon, Jun 7, 2010 at 5:13 PM, Alex Hempton-Smith <hempsworth at gmail.com>wrote:

> 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
> >
> _______________________________________________
> 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