Are you sure it a category
, and not a custom taxonomy?
If it is a category try:
var_dump( wp_get_post_categories( $id ) );
or its equivalent since category
is a taxonomy:
var_dump( wp_get_object_terms( $id, 'category' ) );
Are you sure it a category
, and not a custom taxonomy?
If it is a category try:
var_dump( wp_get_post_categories( $id ) );
or its equivalent since category
is a taxonomy:
var_dump( wp_get_object_terms( $id, 'category' ) );