I am trying to:
- I created a custom post type 'homes' (named 'huizen' in Dutch).
- There's a taxonomy 'regions' (named 'regio' in Dutch).
- I'm trying to load all homes in a specific region on a taxonomy archive page (so, homes per region).
- To be able to do this I created a view using the block editor. Not sure if this is correct, but I just created a page to be able to create the view. That view is later on loaded on the arhive page, where the archive was created using Elementor.
- The problem is that my view is loaded on the archive, but it always shows 'all homes' (all posts published), regardless of the taxonomy. In other words, it doesn't filter by taxonomy, although I did tell the view to do so. (See the attachment)
Link to a page where the issue can be seen: hidden link
I expected to see: only the homes for that specific category/taxonomy.
Hello. Thank you for contacting the Toolset support.
Can you please tell me on what taxonomy archive page you want to display what posts?
Do you mean you want to display all homes one a single page group by regions?
So, lets say for instance, I've a page "Show all homes" and on that page you want to display:
- Region 1 (taxonomy term)
-- home 1
-- home 2
-- home 3
- Region 2 (taxonomy term)
-- home 4
-- home 5
I have a taxonomy archive, that should show the homes per taxonomy term.
So basiclly there's a url for every taxonomy term and on those 'pages' it should show the home for that specific region.
Like in this examples:
- hidden link should show the homes for the region named 'eifel'.
- hidden link should show the homes for the region named 'harz'.
Those pages are archive pages, automatically created for every region (it's a taxonomy archive so to say).
However, on every single one of them simply all homes are displayed, regardless of the region they're in.
I expected that - because of the setting I used, visible in the screenshot - it would only load the homes for that specific region.
I've adjusted the Query Filter added to your view as given under:
Taxonomy filter:
Select posts with taxonomy:
Regios the same as the current archive page
Hi Minesh
YES! That's great thank you!
Only thing is: what did you change? Cause I already had it set like "Regios the same as the current archive page" - as shown in my original screenshot. So, very curious to learn what I did wrong?
Thanks again, best regards Robbert