Skip Navigation

[Resolved] Taxonomy Archive does not load the corresponding posts for the specific term

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 1 year ago.

Assisted by: Minesh.

Author
Posts
#2682827
Webopname_12-2-2024_9237_huisjesduitsland.nl.jpeg

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.

Instead, I got: all posts published

#2682864

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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

Is the above requirement is correct?

#2682868

Hi Minesh

Not completely, but almost correct 🙂

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.

Hope that makes it clear.
thanks again! Robbert

#2682869

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now:
- hidden link

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

Can you please confirm it works as expected.

#2682886

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

#2682889

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As shared - I just change the query filter option to "Set by the current archive page" as you can see with the following screenshot:
- hidden link

More info:
- https://toolset.com/documentation/legacy-features/views-plugin/filtering-views-by-taxonomy/