Sort items

This topic contains 33 replies, has 4 voices, and was last updated by  Alex Rollin 4 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #514431

    sinaxi
    Free User
    Post count: 134

    I created new NUMBER field where I inserted values 200, 343, 323, 13, 342 etc….

    I set SORT options in Places Settings (as Default Sort and Active).

    When I run a search something doesn’t works….. it seems that are sorted as Text and not as Number, it seems that I’ve something like

    939
    94
    9
    834
    87
    81
    etc….

    I confirm that field is number and not text

    #514432

    sinaxi
    Free User
    Post count: 134
    This reply has been marked as private.
    #514463

    Alex Rollin
    Moderator
    Post count: 27815

    Sorting options do not apply to search results, only to the order of listings on the archive pages or in GD Listings.

    #514467

    sinaxi
    Free User
    Post count: 134

    Thanks for you reply! But some days ago when I wrote about this thing you replied me to apply this solution.
    So… how can I see items sorted in search result?
    I create a specified NUMBER field for do what you suggested.
    I spent 2 weeks for create and manually copy values in this field to use for a sort by feature.
    Now?
    Thanks

    #514483

    Alex Rollin
    Moderator
    Post count: 27815

    It is the case that sorting options do not apply to search results.

    Search results are always sorted by relevance.

    #514487

    sinaxi
    Free User
    Post count: 134

    OK you don’t replied to my question.
    Is not good sort by relevance…. what is it “relevance”????
    I’ve to choose (or set) sort by field…. I created (and filled 🙁 ) a Custom Field for this.
    Can you tell me how can we resolve?

    Thanks

    #514518

    Kor
    Moderator
    Post count: 16516

    Hi sinaxi,

    Thanks for your reply. Search results are sorted with relevance to what the visitor is searching for. Title, description, tags, and categories are searched, and the location is also considered. Featured, reviews and custom fields are not relevant.

    https://wpgeodirectory.com/docs-v2/places/sorting/#intro

    #514542

    sinaxi
    Free User
    Post count: 134

    OK you don’t replied to my question.
    Can you tell me how can we resolve?
    I need to sort for my specified field!

    #514584

    Alex Rollin
    Moderator
    Post count: 27815

    We cannot help you with sorting search results, it requires a customization that falls outside of support.

    #514618

    sinaxi
    Free User
    Post count: 134

    Sorry but I can’t follow you.
    Here we’ve a search form…. is impossibile that YOU choose sort by fields. At least, can you tell me how to hard-code and where insert the code for sort search results for a specified field?

    #514638

    Alex Rollin
    Moderator
    Post count: 27815

    We do not provide customization services here in the forum.

    You can contact GD Experts here to help with customization:

    https://geodirectoryexperts.com

    #514667

    sinaxi
    Free User
    Post count: 134

    But is there a way for order for a specified field??

    I need to order with my info records showed

    #514760

    Alex Rollin
    Moderator
    Post count: 27815

    You can add a custom sort in the sorting options for that custom field. That will order the listings on the Archive page.

    #514811

    sinaxi
    Free User
    Post count: 134

    but is what I do! I created a custom field and set to order for this!!

    #514815

    Alex Rollin
    Moderator
    Post count: 27815
Viewing 15 posts - 1 through 15 (of 34 total)

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

Open Support Ticket