Exact match for filter needed
-
Hi there,
I am in the process of setting up a website for a travel agency. The trips they are offering are added via an API to a custom post type, which I have extended with pods for some additional taxonomies. One of them is “country”, which obviously has over 200 values for each country in the world. So far, so good.
Now I have set up a page which lists ALL of the countries alphabetically with this template:
<a href="reisen/?filter_trip_country_continent={@term_id}">
<span class="filter-name">{@name} ({@count})</span>
</a><br />In the output, I noticed that some of the country-lists have trips, which do not belong to that specific category. Upon investigation, it seems that for example https://domain/reisen/?filter_trip_country_continent=98 lists the trips which have South Africa (term ID 98) as their taxonomy – but also the ones, which have Malta (term ID 198). So it seems, that “filter_trip_country_continent={@term_id}” takes all term IDs, which contain that specific number, but not just those where the ID matches exactly the number.
What do I have to do to make Malta trips not appear on the South Africa page…. ?
Thanks,
Astrid
- You must be logged in to reply to this topic.