- This topic has 1 reply, 2 voices, and was last updated 10 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Sorting by checkbox AND date
Tagged: featured entries, sorting
Hi Ross, I have a simple form for a custom post type with 2 taxonomies which works fine. The thing is though that I need the posts sorted new-to-old except for a few featured entries.
So I made a tickbox to make a post featured and sorted the form by that tickbox. That works. The problem is that all non-featured post somehow seem to revert to an old-to-new order.
Is there a way to set the sort like this:
1) sort by featured or non-featured
2) sort the rest from new-to-old
Is there a way to set such a double sort-order with a filter or something in the functions.php
Thanks in advance,
many greetings,
Han
Hi there
I’m afraid a 2 tier sorting system is not yet available but I’m considering adding it in.
You could try to use pre_get_posts to modify the sort order though – although its not something I’m officially supporting at the moment.
Thanks