On Wed, Feb 18, 2009 at 2:27 PM, Austin Matzko <if.website at gmail.com> wrote: > Try wp_get_post_categories(get_the_ID()) to get an array of post IDs. I meant to say "to get an array of category IDs", something like the following: if ( is_single() && have_posts() ) : the_post(); $cats = wp_get_post_categories(get_the_ID()); etc.