Skip Navigation

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

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.

Our next available supporter will start replying to tickets in about 5.84 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 1 voice.

Last updated by seanN-5 1 year, 7 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.