If I put a search box on the homepage that gives the user the chance to begin their search by choosing a country I would like them to be taken to various displays depending on the country they choose. So in the search form, which I want in a widget, I have put in a country dropdown and entered in the “Redirect to url” option in settings: /displaylist/?country=
Note that I do not simply want to limit the entries displayed on one display but want to have a different display for each country.
I thought that I would be able to create the various displays and place the relevant shortcodes on one page called ‘displaylist’ as referenced from the homepage search form.
On the custom display in the advanced settings I have tried various combinations but none seem to quite get there. For example I want to return the display that only lists the entries from Canada so I have put where country is equal to [get parameter=canada] AND country is equal to canada – and yes that is effective for that one display. I have done the same fr the UK display.
I put two custom display shortcodes on the one page as follows:
(1 is Canada and 2 UK)
It seems to matter what order the codes are pasted in since if I search for Canada the result is as I had wished for but if I search for the UK then I get both Canada results AND UK results. So it seems I get the results for the one pasted first and or the one pasted first and second but never the one pasted second.
I hope that makes sense - any help or suggestions welcomed.