I'm looking to sort products by date, which is a 4-digit year. I had originally tried to sort using a custom taxonomy. I have since duplicated the dates into a custom field: "year-4sorting." (screenshot1). When I set my product view to order by year (screenshot2), no results display.
Here's an example of a products page where I would like to fix my sorting issue: hidden link
Hello mw and thank you for contacting the Toolset support.
The sorting configuration on the view seems correct to me, it should work. Maybe there is something interfering with the view such as:
1. Caching: Purge any cache and ask your hosting provider to purge any server-level caching(Redis, Memcache, Varnish, etc.).
2. Compatibility conflict: check if this issue appears when:
- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty Fourteen. It will tell us if there is an interaction issue with your theme.
If the problem disappears, start activating one at the time to track where the incompatibility is produced.
If this does not help, please allow me temporary access to your site to check this page closely. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Jamal is on Vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.
The thing is that the custom field "year-4sorting" was not a types field. So, I navigate to:
=> Toolset => Custom Fields => click on "Post Field Control" button and on the screen you get you will see all the field.
I set the field "year-4sorting" to manage with Types plugin.
=> hidden link
Then I set your view to sort by the custom field "year-4sorting".
=> hidden link
Can you please confirm if it works as expected.
=> hidden link
In Edit View > Ordering > Order by, there are several instances of the field "year-4sorting." How do I delete that ones that I don't need / don't exist anymore? I tried post field control, but there is only one "year-4sorting" there.
New threads created by Minesh and linked to this one are listed below: