Skip Navigation

[Resolved] Date field not sortable in Views

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user's view sorting is not working.

Solution:

In this user's case he had the post Order plugin enabled and this plugin will overwrite the order settings in Views.

This support ticket is created 6 years, 8 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Alessandro Massobrio 6 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#869999
date-field-sort.png

Hello,

I have a view with a custom Date Field named 'Kalendar'. I want the posts to be sorted ascending by date.

Despite the 'Kalendar' field is selected in the sorting options of the view, the posts in front-end still won't display accordingly.

Attached is a screenshot of the sorting option in the view.

This is the code I use to print the field in the view:

<div class="col-md-6" style="padding-left:0;margin-left:-15px;margin-bottom:15px;">
                <h1>[types field='kalendar' style='text' format='j.m.'][/types]</h1>
</div>

What am I mistaking?

Thanks!
Best,
Alessandro

#870280

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alessandro,

Thank you for contacting our support forum.

I see that you have the Post Type Order plugin.

Could you try disabling this and let me know if the ordering start working now.

Thanks,
Shane

#870404

Dear Shane,

I was realizing the very same thing! I forgot about that plugin. Sure, by deactivating it the posts in the view can be sorted correctly by Date Field.

Thanks for your reply, and sorry for the waste of time for such a banal thing.

Best,
Alessandro