Skip Navigation

[Resolved] Show view display order by taxonomy

This support ticket is created 2 years, 6 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
- 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 1 reply, has 2 voices.

Last updated by Minesh 2 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2420363
Screenshot 2022-07-19 at 10.04.35 am.png

Tell us what you are trying to do? Please see - hidden link
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? hidden link

#2420597

Minesh
Supporter

Languages: English (English )

Timezone: 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.