Skip Navigation

[Resolved] Display post in right taxonomy

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a View that shows posts. When I place the View in a taxonomy archive, all posts are shown. I would like to filter the View so that only posts in that taxonomy are shown.

Solution: Add a Query Filter to this View. Filter by taxonomy term, set by the current archive.

Relevant Documentation:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by magdalenaT 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#901693

I am trying to:
I have created post type Katalog firm
and taxomomy photographers (which is holding Polish states and cities):

Taxonomy photographers:
Mazowieckie (parent)
--- Warszawa (child)
--- Plonsk (child)

I have Created photographer portfolio (for testing)

i've inserted shortcodes to parent and child taxonomies:
[wpv-view name="lista-fotografowie"]
but something is wrong

My test photographer should display in:
Mazowieckie (parent)
--- Warszawa (child)

but not in
--- Plonsk (child)

And it's displaying every where.

Taxonomy that i have set for this post is Warszawa

Link to a page where the issue can be seen:

Here this should display:
hidden link
hidden link

and here it shouldn't:
hidden link

I expected to see:

Instead, I got:

#901719

Hello, can you provide some more information for me?
- Go to Toolset > WordPress Archives and edit the archive assigned to this taxonomy. Take a screenshot showing the editor screen, and upload that image with your next reply
- Temporarily deactivate all plugins except Types and Views, and activate a default theme like Twenty Seventeen. Then test again, and see if the results are the same.

Please let me know what you find out.

#901737
Screenshot-2018-5-21 Edit View ‹ Portal Ślubny Ekskluzywny Ślub — WordPress.png
Screenshot-2018-5-21 Edit Fotograf ślubny ‹ Portal Ślubny Ekskluzywny Ślub — WordPress.png

I dont have archives assigned.

Im putting vievs-shortcodes to taxonomies manually.

Screens:
1. Screenshot-2018-5-21 Edit Fotograf ślubny ‹ Portal Ślubny Ekskluzywny Ślub — WordPress.png - my taxonomy setings
2. Screenshot-2018-5-21 Edit View ‹ Portal Ślubny Ekskluzywny Ślub — WordPress.png - my view setup

#901743

Your View of posts does not have a Query Filter, so all the posts are showing. You must add a Query Filter:
- Edit the View "lista: fotografawie"
- Find the Query Filter section and click "Add filter"
- Add a Fotografawie slubni taxonomy term filter, where the term is set by the current archive

#901846

Great.

I thought it was it but i wasn't shure. I had this but after all removed.

OK now i can carry on.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.