Skip Navigation

[Résolu] Taxonomy filter not working

This support ticket is created Il y a 4 années et 12 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par guyA-2 Il y a 4 années et 12 mois.

Assisté par: Nigel.

Auteur
Publications
#1400555

I am trying to: get resultst to display filtered by a the taxonomy type event-teacher.
This is working already on the taxonomy type event-category

Link to a page where the issue can be seen: lien caché
On this page you can see that all of the events are being displayed for all teachers even though the query filter for this view is set to "Taxonomy is set where this view is inserted".

I expected to see: Only the events that the teacher jock-orton is teaching (in this case he has no evens so I'd expect no results found to display. But the issue is the same if you filter by another teacher for example: lien caché also shows all events for all teachers.

I've set this up exactly the same as event-category which is working perfectly. I've also tried flushing the permalinks several times after I make changes and clearing the cache. And I've also removed the content template from the taxonomy view too just in case that was the issue.

#1400795

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

How are your archives set up?

These pages are the event-teacher taxonomy archives.

I expected to find a custom archive at Toolset > WordPress Archives but found none.

So how are you editing the theme's archives? Are you editing the PHP templates directly and inserting a View in the PHP template?

#1400963

Hi Nigel,

Yes I'm dropping the views directly into the php templates.

#1401501

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Screenshot 2019-12-06 at 10.17.50.png

Try updating the Query Filter in your View to "Set by the current archive page".

#1401519

Hey Nigel, thanks for your help! Problem solved. Have a great weekend!
Guy