Making a piece of custom metadata act like a tag?
I create a new post for concerts I attend. Currently, I include the venue name as a piece of custom metadata. I would like for this piece of metadata to be clickable, to show all other posts that were “tagged” with that specific venue.
I could add the venue as its own tag, but then it would be displayed with the other tags, and I would like it displayed separately. But, when I display the venue in its own metadata section, then I can’t retain the functionality of the normal tags.
Any way to accomplish this or something like this?
Instead of metadata, I think you could use wikilinks. (You need to turn on wikilinks on your dashboard under Typography.)
Include a wikilink to the venue in each post, e.g. Venue: [[Royal Festival Hall]]. Make a matching post with that name: Royal Festival Hall.
If you're using the blog template, all the links to that post should be listed, i.e. all the relevant concerts listed on the venue page. If you're using another template, you may have to add the backlinks code to entry.html. For instance:
{{#backlinks}}
{{title}}
{{/backlinks}}