Can I Sort by Multiple Parameters?

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

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

Open Support Ticket
  • Author
    Posts
  • #497499

    Quinton Jones
    Full Member
    Post count: 24

    Hi, In the gd_listings widget, I’d like to sort by featured listings, and then sort that result set by latest. Is that possible?

    Examples:
    sort_by=’featured_desc’ sort_by=’latest’
    sort_by=’featured_desc, latest’
    sort_by=’featured_desc latest’
    sort_by=’featured_desc && latest’

    Something like that?

    Also, the shortcodes are made up of key value pairs. I found a list of keys (https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/). Where can I find a list of values? I’m using the Gutenberg editor.

    Thanks

    #497542

    Guust
    Moderator
    Post count: 29970

    If you are using the gutenberg blocks, then the settings are in the block settings: https://wpgeodirectory.com/docs-v2/integrations/gutenberg/

    All settings are there, you cannot sort a widget/block/shortcode by more than one option, but you can choose to filter by featured only, and then sort by latest.

    Thanks

    #497623

    Quinton Jones
    Full Member
    Post count: 24

    Thanks! I’m sure that will give me the result I need.

    #497633

    Guust
    Moderator
    Post count: 29970

    You’re welcome

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount