Skip Navigation

[Resolved] wpv-sort-orderby by post_date not working

This support ticket is created 3 years 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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by beatR 2 years, 12 months ago.

Assisted by: Waqar.

Author
Posts
#2218625

Hi
i'm using a toolset WordPress Archive with filters and options. The default created code for ordering by post_date does not seem to work, it doesnt sort correctly:

[wpv-sort-orderby type="select" options="post_date" label_for_post_date="Post date" orderby_descending_for="post_date"][wpv-sort-order type="select" options="desc,asc" label_for_asc="Ascending" label_for_desc="Descending" label_asc_for_post_date="Older first" label_desc_for_post_date="Newer first"]

it creates this URL:
hidden link

if i change to "wpv_sort_orderby_as=number", it works.

How to fix this?

Thanks!

(i happily pass you the necessary logins)

#2218979

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some tests on my website, with the same default sorting controls code and it worked correctly, even with the "wpv_sort_orderby_as=string" parameter.

I couldn't access the page that you've shared due to password protection, but some third-party post ordering plugins are known to affect the order of the posts in Toolset views and archives.

To troubleshoot this, I'll suggest the following steps:

1. Please make sure that WordPress, active theme, and plugins are all updated to the latest versions.

2. It would be interesting to test this with all non-Toolset plugins disabled and a default theme like Twenty Twenty-One.

If it's fixed, you can start adding the disabled items, one by one, to narrow down to a possible conflicting one.

3. In case the issue still persists, you're welcome to share temporary admin login details, so that I can see how this archive is set up in the admin area.

Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.

regards,
Waqar

#2223219

Thank you for sharing these details.

During troubleshooting, I noticed that the "Admin Sort" option from the "Post Types Order" plugin's setting is affecting this.

If you'll uncheck this option from WP Admin -> Settings -> Post Types Order, you'll see that the sorting will work correctly, even with the AJAX.

#2223245

Oh man. I'm sorry, i had tomatoes on my eyes not seêing this potential problem. Hopefully i can figure out how to get it to run whilst keeping the plugin. Thank you.