Sorting by checkbox AND date

Forums › Forums › Search & Filter Pro › Sorting by checkbox AND date

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #27215

    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

    Ross Moderator
    #27441

    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

Viewing 2 posts – 1 through 2 (of 2 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.