Hello,
for the archive page of our events post type, we want to display all of the categories within the archive page.
For that we have created a loop and a corresponding loop item, that only contains the taxonomies [wpv-post-taxonomy type="veranstaltungen"] (events).
The problem is that the taxonomies get displayed multiple times for every single event item, that is assigned to that taxonomy.
So there are duplicates. Logically it makes sense, because it's the archive of the events, but is it possible to display only one item per taxonomy?
I've found an old forum topic about this, but I couldn't figure it out because of the removed links:
https://toolset.com/forums/topic/displaying-only-one-item-from-each-taxonomy/
Do you have an idea?
Thank you and best regards,
Levi
Hi Levi
Can you clarify a little what you are aiming for so I can direct you better?
You have Event posts, and you have a taxonomy veranstaltungen, that has a number of terms.
We are displaying the Event post archive, so it would typically look something like this:
Title: Event archive
Event#1
Event#2
Event#3
Event#4
etc.
We might add all of the taxonomy terms at the top, like this:
Title: Event archive
Terms: Term#1 Term#2 Term#3
Event#1
Event#2
Event#3
Event#4
It sounds a bit like you are seeing:
Title: Event archive
Event#1
Term#1 Term#2 Term#3
Event#2
Term#1 Term#2 Term#3
Event#3
Term#1 Term#2 Term#3
Event#4
Term#1 Term#2 Term#3
(like you are outputting the terms once for every loop item, instead of once for the archive).
Can you clarify what you actually want to see?
(I am assuming above that you want to output all the terms, rather than terms that belong to a specific event post.)