[wp-hackers] Why in the heck won't this work?

Viper007Bond viper at viper007bond.com
Fri Aug 24 06:10:47 GMT 2007

I know how to deal with the data that's returned and how to loop through it
and all that good stuff.

But my point is I shouldn't have to. When in_category() is used in a theme,
it's $categories array is different than when I use it on an admin page and
I can't figure out why (same data, different keys).

I even ditched my custom function, set $post and global'ed it, and
in_category() itself is getting the data with the wrong keys.

Something is causing wp_get_object_terms() to return the data differently.

Viper007Bond | http://www.viper007bond.com/

More information about the wp-hackers mailing list