[Resolved] wp_get_post_categories($post->ID) – Category Names?
I am modifying a function, and in side of it I am trying to get a list of category titles from a post, then assign it to a variable. When I execute the code below, it only gives me a list of IDs. How do I get the category names from this array of ID’s is it possible? I’ve searched all around the codex, but I can’t find anything. Is it even possible?
$wpcats = wp_get_post_categories($post->ID);
$lister = implode(“,”, $wpcats);
When I echo $lister; I get a list of category IDs, and I want a list of category names…
- The topic ‘[Resolved] wp_get_post_categories($post->ID) – Category Names?’ is closed to new replies.