You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope this is the right place to post this - I sometime search GitHub but in all these years, this is my first post! I'm not sure if this is a question or a feature request at this point...!
Expected behavior
Sort a blog list by two fields, first a custom field (desc) then, within that, by date (desc). Since there's only one orderby parameter, I'm guessing both HAVE to sort sort 'desc' - but can it excecute the custom sort, THEN the date one... however I'm guessing the parameter order in the shortcode is irrelevant, so even if it could read both, how would it know which to do first...?
Post name blog_post_custom_sort date created
testing 0100 17/3/19
more testing 0002 20/3/19
testing again 0002 15/3/19
another one 0002 10/3/19
still testing 0001 25/3/19
(as in shortcode above, I've already filtered by category)
I removed numerous tag and class parameters to make it easy to read, but left in my troubleshooting reveals (custom field value and ID).
Actual behavior
Sorts by the custom field, ignores the date (posts appear to be random within group of posts with the same value for the custom field - definitely not date published, not ID)
Shortcode used and steps to reproduce the behavior
WP version, LCP plugin version (versions of other software if relevant, e.g. PHP)
WP5.1.1, LCP 0.79
In case relevant, some posts are new, using Gutenberg, others imported from two other sites, and therefore using Classic blocks.
(If you want to submit a feature request, delete the sections above and describe the suggested feature.)
If there isn't a way of doing this... it wold be really nice :)
Thanks for all your good work!
The text was updated successfully, but these errors were encountered:
I hope this is the right place to post this - I sometime search GitHub but in all these years, this is my first post! I'm not sure if this is a question or a feature request at this point...!
Expected behavior
Sort a blog list by two fields, first a custom field (desc) then, within that, by date (desc). Since there's only one orderby parameter, I'm guessing both HAVE to sort sort 'desc' - but can it excecute the custom sort, THEN the date one... however I'm guessing the parameter order in the shortcode is irrelevant, so even if it could read both, how would it know which to do first...?
(as in shortcode above, I've already filtered by category)
I removed numerous tag and class parameters to make it easy to read, but left in my troubleshooting reveals (custom field value and ID).
Actual behavior
Sorts by the custom field, ignores the date (posts appear to be random within group of posts with the same value for the custom field - definitely not date published, not ID)
Shortcode used and steps to reproduce the behavior
WP version, LCP plugin version (versions of other software if relevant, e.g. PHP)
WP5.1.1, LCP 0.79
In case relevant, some posts are new, using Gutenberg, others imported from two other sites, and therefore using Classic blocks.
(If you want to submit a feature request, delete the sections above and describe the suggested feature.)
If there isn't a way of doing this... it wold be really nice :)
Thanks for all your good work!
The text was updated successfully, but these errors were encountered: