Ordering on two levels: First "Featured" and second "Newest"

This topic contains 9 replies, has 3 voices, and was last updated by  Guust 4 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #538562

    Sytse Berends
    Expired Member
    Post count: 21

    Is there a way to order the published listings on two levels?
    First condition would be on ‘Featured’ and second on ‘Newest’ or ‘A-Z’.

    This would be a great way for the site owner to promote features/paid listings.

    (If this isn’t possible, can I request it as a feature request?)

    Sytse

    #538573

    Guust
    Moderator
    Post count: 29970

    Nest your ordering, see image.
    Thanks

    #538868

    Sytse Berends
    Expired Member
    Post count: 21

    Guust,

    Problem is, I want to order listings called by the shortcode below.
    Even with your settings (see attachment), when I delete sort_by=”featured_desc” from the shortcode below, it only shows the most recent listings.
    I’m looking for a way to sort the listings from the shortcode first on featured, econd on random.

    Sytse

    [gd_listings post_type=”gd_place” post_limit=”15″ add_location_filter=”1″ sort_by=”featured_desc” title_tag=”h3″ layout=”3″ view_all_link=”1″ bottom_pagination=”1″ category=”0″]

    #538880

    Alex Rollin
    Moderator
    Post count: 27815

    If you make a sort in the sorting options, then, in your GD Listings, you can choose that sort. Make sense?

    #538885

    Sytse Berends
    Expired Member
    Post count: 21

    Alex, yes, but not in two grades/nested

    In the sorting options I have for example:

    Featured
    – Random
    – A-Z
    (Featured is main, Random and A_Z are nested, like Guust Explained, see also my previous attachment)

    When I edit the shortcode, I can only choose as sort for Featured or Random or A-Z.
    I would need to have ‘Default’ (or just empty) to use the (nested) sort from the settings. Now If I leave sort_by=”featured_desc” empty, it automatically sorts on ‘newest’ and it doesn’t follow the general sort settings.

    Other solution would be shortcode like: first_sort_by=”featured_desc” second_sort_by=”random”

    #538909

    Guust
    Moderator
    Post count: 29970

    Please post your URL and WP admin details in a private reply and we will have a look at your settings if you like.
    Also include which CPT you want the sort applied to.

    #538914

    Sytse Berends
    Expired Member
    Post count: 21
    This reply has been marked as private.
    #538923

    Guust
    Moderator
    Post count: 29970

    You did not set the Featured Sort as active: FIXED.
    Please check https://kopenbijdekweker.nl/kopie/aaa/

    Thanks

    #538928

    Sytse Berends
    Expired Member
    Post count: 21

    Yes, solved. Thanks!

    #539030

    Guust
    Moderator
    Post count: 29970

    You’re welcome

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket