Passer la navigation

[Résolu] Show view display order by taxonomy

This support ticket is created Il y a 3 years, 10 months. 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
- 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 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Minesh Il y a 3 years, 10 months.

Assisté par: Minesh.

Auteur
Publications
#2420363
Screenshot 2022-07-19 at 10.04.35 am.png

Tell us what you are trying to do? Please see - lien caché
This displays all In Production vehicles by each Department. Department is "flat" type taxonomy.
These currently are - GLEN ROCK FIRE DEPARTMENT, MONROE TOWNSHIP FIRE DISTRICT 2, NEW JERSEY TRANSIT
Is there a way we can display the In Production entries alphabetically by Department name? It doesn't seem to be on the list of Order by options, as see on the attached.

Is there any documentation that you are following? No. I can't seem to find it. It would be helpful to point us in the right direction.

Is there a similar example that we can see? No. But the aim is to display the entries ordered by taxonomy name alphabetically

What is the link to your site? lien caché

#2420597

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset Views use standard WordPress class WP_Query to query posts and the WP_Query does not support the option to order posts by taxonomy term.
=> https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

As its not supported natively there is no such feature available to sort/order posts by terms using post views.