Sauter la navigation

[Résolu] Sorting my taxonomy not available under Views.

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Marqué : ,

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Luo Yang Il y a 5 années et 3 mois.

Assisté par: Luo Yang.

Auteur
Publications
#1376795
Sample.png

I am trying to: Sort by taxonomy in a view and I don't have the option. I created a custom shortcode that takes the department taxonomy a person belongs to and adds it as a header so it only appears once. The issue is it appears more than once since I'm not able to sort by the department taxonomy.

Link to a page where the issue can be seen: lien caché

I expected to see:

Instead, I got:

#1376893

Hello,

I suggest you try with a nested view, for example:
1) Parent taxonomy view
- Query terms of "department" taxonomy
- Display below child post view

2) Child post view:
- Query "person" posts
- Filter by:
Select posts with taxonomy:
"department" set by the parent Taxonomy View

See our document:
https://toolset.com/documentation/user-guides/using-a-child-view-in-a-taxonomy-view-layout/
Views Inside Views – Display Nested Multidimensional Lists