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)
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
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.
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.