• Resolved Clark

    (@clarktbt)


    Hi, Thanks for the great plugin. I use it in a few websites including this one. I’m struggling to understand why the dropdown ‘mini-list’ of results is in a different order from the results if I click to See More Results. Try searching for ‘red’. The results on the dropdown start with House Red, Barbaresco Valgrande and Meal Bundles 3. But these are not the first three items on the search results page when I click on See More Results. Any suggestions for resolving this would be brilliant, thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Clark

    (@clarktbt)

    Ok…. I think I understand what is going on….. I’ve actually got some code that I wrote that generates the query results on the archive pages….. and presumably on the search page as well…. and my code sorts by title…. and I can see now that is how the search results page is indeed ordering the results…..

    Any suggestions or guidance about how I can preserve your ordering on the search results? Presumably you have a custom ordering by relevance?

    Thank you.

    Plugin Author Damian Góra

    (@damian-gora)

    Hi,

    Probably you override the search order as you mentioned. Could you add an extra “if statement” for your custom code?

    
    if ( empty( $_GET['dgwt_wcas'] ) ) {
       // ... your code
    }
    

    Then your code will be ignored on the search results page.

    Best
    Damian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Results in Different Order’ is closed to new replies.