I'm using the content query webpart to query a blog list and it is working well for the most part, the issue i'm having has to do with the categories that the blog has been associated with when a blog has more than one category the PostCategory field contains data that looks like this:
Which contains both the id and the name of the category which I can use to build a link to the blog category filter page. When a given blog entry is associated with one category it the PostCategory field just renders out like this:
My question is how can I get the id of the category where there is only one? I know this has to be possible because SharePoint gets it with the stock blog template. I have combed through the blog.xsl file and have come up empty, any ideas on this one?