I’m writing the code of my own theme, in localhost.
The blog is about music lyrics.
The title of the entries, are the name of the song.
The tag is the name of the artist.
And the categories, are the first letter of the artist name.
In the top, I have a horizontal bar with an alphabetical list of categories, and what I want, is that when I click in the “A”, show a list of the artist with its name starting with “A”.
I have done this, with this code:
It gives me a list of the tags (artist), but some are duplicated (because I have different songs of the same artist).
What do I need to do to get a list of the tags, but without duplicating them?
If I click on the “S”, i get a list like this: