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.