Taxonomies Shortcode with Links
-
I am using the below shortcode in the content of custom posts to display a list of associated taxonomies. This works and separates with commas and the final one has an “and” before, which is great. But I can’t seem to work out how to make these taxonomies clickable as links.
[pods]{@talent-category}[/pods]
I tried several other approaches to this like
[pods][each talent-category]{@name} [/each][/pods]
But this doesn’t separate the results with a comma.
I also tried:
[pods][each talent-category]{@name}, [/each][/pods]
But this means there’s a comma at the end of the last result and no “and” before the final item.
Is there a way to get the simpler, first example to output as links but still be separated by commas and have an and at the end?
- The topic ‘Taxonomies Shortcode with Links’ is closed to new replies.