Skip Navigation

[Resolved] Date field not sortable in Views

This support ticket is created 6 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
- 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)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#683539

I have a custom post type with a date field, and a view that displays the posts. I need the view to sort the posts by date field.

I have the date field in the content-loop of my view

[types field='kalender' style='text' format='j.m'][/types]

and the same date field is selected in the sort order list of the view.

Unfortunately the posts are sorted only by post date, and not by date field. How can I accomplish the expected result?

Thanks and best.

#684549

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-04-18 at 12.47.17.png

Hi Alessandro

This should work, I just tested it myself.

I have a custom post type with a custom field "publication date". I created a View to display my custom post type, and in the Ordering section specified my custom field as the orderby option.

Can you show me a screenshot with your ordering options?