Skip Navigation

[Resolved] Sorting two post types by custom date field not working

This support ticket is created 5 years, 2 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.

This topic contains 1 reply, has 1 voice.

Last updated by seanN-5 5 years, 2 months ago.

Author
Posts
#1332027

I have two post types: Exhibitions and Performances. In a view I pull posts from both post types and have it set to sort based on a custom field called "start date".

I expected that all posts pulled in would sort based on the custom field "start date".

Instead it separates the posts first by post type, then sorts by "start date".

For example three posts with the following "start Dates" sort in this order for Acscending.

Performance 2 October 10

Performance 3 September 25

Exhibition 1 October 3

If Descending selected they sort in the following order:

Exhibition 1 October 3

Performance 3 September 25

Performance 2 October 10

#1332037

My issue is resolved now. Thank you!

I have some things to clear up before deciding if I have an issue or not.