Display URL of 1 certain category when each post has 2
-
Hi, I think I found in the codex something very close to what I’m trying to do, but it’s a little tricky because every post on my site has been assigned 2 categories, instead of 1.
It’s a guitar tab site, so each post is categorized by tab type and album. For example, the tab for this song is in both the “Guitar Tabs” (tab type) and “Dark Side of the Moon” (album) categories.
In this case, I just want to display the album category link, which is http://www.pinkfloydtabs.com/the-dark-side-of-the-moon
I’m pretty sure in order to do this I should do a combination of “get_category_link” & exclude the guitar tab ID category, but I’m not quite sure.
Maybe something like “get_category_link(exclude=19)” with 19 being the Guitar Tabs (tab type) category that I don’t want to display.
Any ideas?
- The topic ‘Display URL of 1 certain category when each post has 2’ is closed to new replies.