Display Tags With Extra Text in Archives and Dropdowns
-
Hi,
I’m looking for a way to add text to taxonomy values, only when displaying in meta archives and dropdowns.
Let’s assume we have tags with years (1990, 1991, 1992, etc.). Now a post is tagged with a year, e.g., “1990”), then that tag will also be displayed as “1990” in the meta section below that post.
On archive pages and in dropdowns, however, I would like the year tag to display not as “1990” but as “Year 1990″—without changing the actual value. That’s for sorting reasons among others.
- Year 1990 [value=”1990″]
- Year 1991 [value=”1991″]
- Year 1992 [value=”1992″]
- Year 1993 [value=”1993″]
- Year 1994 [value=”1994″]
…
Can someone come up with a solution for this? Pseudo elements won’t work on <option>, otherwise I might have considered that.
Any ideas are are welcome and appreciated. Thanks much!
- The topic ‘Display Tags With Extra Text in Archives and Dropdowns’ is closed to new replies.