Skip Navigation

[Resolved] sort field by day not alphabetical

This support ticket is created 3 years, 9 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
- 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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1682909

Tell us what you are trying to do?
is there a way to sort a column by day of week and not alphabetical?

Is there any documentation that you are following?
no

Is there a similar example that we can see?
not exactly.

What is the link to your site?
hidden link

#1683527
day-of-week.JPG

Hello,

How do you setup the "day of week" field?
Is it a custom select field?
If it is, you can setup the option "Custom field content" and option "Display text" differently, for example:
- Display text: Sun, Custom field content: 0
- Display text: Mon, Custom field content: 1
- Display text: Tue, Custom field content: 2
...

See screenshot day-of-week.JPG

So you will be able to order result by "day of week" field option value in your view.

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