I have looked into many of the questions here on the subject but none seem to fit my requirements.
I have an Event website.
Each Post (Event) has custom fields:
I load the archive based on the custom fields Date.
Let’s say we have 20 results, what I need is a filter (dropdown) above the results which contains the custom field (City) of the posts.
The idea is that the dropdown list contains only the cities which are used in the 20 results.
I am using the standard archive.php and not custom posts.
Any pointers to other answers which fit would be appreciated.
Read more here:: User Filter Options on Archive Page