Search order after importing listings

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

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

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #524595

    Richard
    Expired Member
    Post count: 18

    After importing listings, the Search order defaults to last added, so the Search page shows results in Z-A titles order (as I imported in A-Z titles order).

    This looks odd on the Search results page if a user does a blank search (clicks on the search button without entering any values). When new listings are added to GD, the search results will show the new listings at the top of results which will be random titles, then further down the list the results will be Z-A again.

    I’ve read replies to several posts saying that it is not possible to sort Search results and that they are ordered by relevance. However I think there is a use case for allowing sorting, or enabling default ordering of A-Z titles if no location or other search criteria is entered.

    Without this ability, could you please suggest which of the following is possible:
    (I only have 1 CPT called ‘Suppliers’ and one Country location with multi-cities enabled)

    1. Redirect a search to the ‘/suppliers/’ url if no search criteria is entered. This would show the user a list of all suppliers in default A-Z order.

    2. Have an ‘All Suppliers’ default value in the Search field, so that users are directed to a Categories archive page if they enter no search criteria.

    3. To make the main Search field a mandatory field.

    My preference is either Option 1 or 2 because most websites allow a blank search and users often do this. Option 1 would be ideal for me, because to implement Option 2 I guess I will have to create a parent ‘All Suppliers’ category and make the subcategories for the different types of supplier.

    Maybe there’s a better solution?

    Thanks in advance for your help.

    #524607

    Kor
    Moderator
    Post count: 16516

    Hi Richard,

    Thanks for your post. Option 2 is how it works by default you can test it out here https://wpgeo.directory/supreme-directory/ . If I’m misunderstanding your requirements, maybe you can elaborate a little bit more?

    Thanks!

    #524616

    Richard
    Expired Member
    Post count: 18

    Apologies, Search is now showing newly imported listings in A-Z! My first time importing – it was definitely defaulting Z-A but maybe that was before I did the Term Counts? It’s fine now. Thanks for replying so quickly!

    #524656

    Kor
    Moderator
    Post count: 16516

    Hi Richard,

    Thanks for your reply and I’m glad that it’s working fine now. But do let us know if it comes back again and we’ll check your GD setup.

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