Get Wordpress Category from Single Post
问题 I'm finishing up a WP theme, and I'm on the single.php template. I'm having some issues because I need to access the parent category that a post is in in order to display certain images and XML content. Here is an example of what I'm talking about. The following is the end url of a single post: /andrew/leaf-art-2/ /andrew/ is the category, and leaf-art-2 is the single post. When I am on the single post, I am having trouble getting single_cat_title(); to return the category that the current