Shortcode for sorting options

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 7 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #387286

    Andrea Piaggesi
    Expired Member
    Post count: 42

    Hi,
    I’m trying to build a Geodirectory page with some shortcodes.
    Actually I’m using:

    • MAP: [gd_listing_map width=100% height=400 scrollwheel=false post_type=”gd_idea” category=”” autozoom=false zoom=5]
    • SEARCH: [gd_advanced_search show_adv_search=”always”]
    • LISTING GRID: [gd_listings post_type=”gd_idea” layout=4 category=”” post_number=””]

    I would like to include some sorting options to my list grid.
    Is there a shortcode or something like to display the ordering select list?

    Thanks!
    Andrea

    #387292

    Kor
    Moderator
    Post count: 16516

    Hi Andrea,

    Yes, please refer to this section of the documentation https://wpgeodirectory.com/docs/core-shortcodes/#listings

    Thanks!

    #387374

    Andrea Piaggesi
    Expired Member
    Post count: 42

    Thanks,
    I’ve readed a lot this page but I can’t find a shortcode for an ordering select list.

    Just:
    list_sort – One of az, latest, featured, high_review, high_rating, random (default = latest)

    I would like the ability to change the order of the results.

    Thanks!
    Andrea

    #387412

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    you can only add the parameter for the default sorting yourself, you can’t provide options for sorting to users with that shortcode. Only the original listings page provides sorting options.

    Thanks

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