I need to get all terms that have post with dates in custom field. So I need a list for all dates from the term. I need to know exactly what is tha dates within each term in my site. It's not in term, it's in their posts.
after that I need to know foreach month what is the terms that containe post with this specifc month.
all of this is needed for search's fields to filter my post type (tours) by terms (country) and dates (each tour can have many dates).
I got the solution bymyself in another post: get terms that have post with custom post type between 2 values
Now I need to know hot to store this huge array in my Wordpress Database.