[wp-hackers] Exclude Categories From The Loop
Stephane Daury
wordpress at tekartist.org
Fri Oct 5 05:04:46 GMT 2007
I since the_category() doesn't support exclusion, you could get
creative with get_categories(), which does.
Get an array from get_categories() with the desired categories
excluded, then compare the result of get_the_category() to it.
Not the most efficient I'm sure, but it should work. and you can make
a function in your plugin out of it.
Stephane
On Oct 04, 2007, at 22:37, Matt wrote:
> Is it possible to exclude certain catgories from displaying in the
> loop,
> with a plugin?
>
> Thanks,
> --
> Matt (speedboxer at gmail.com)
> http://mattsblog.ca/
> _______________________________________________
> 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