[wp-hackers] Exclude Categories From The Loop
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.
On Oct 04, 2007, at 22:37, Matt wrote:
> Is it possible to exclude certain catgories from displaying in the
> with a plugin?
> Matt (speedboxer at gmail.com)
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers