Log in Sign up

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?


2 months ago, 2 replies   Edit question

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}}

Answered 6 months ago · Edit answer

Re-visiting this a few months later, and that’s a clever solution! Little extra legwork to create individual pages for each venue but that’s a one-time thing.

Is there a way to get specific posts (i.e.: the ones for the venue posts) to be rendered with a specific template, rather than entry.html? This way, I can control the styling a little more.

Answered 2 months ago · Edit answer