Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › URL search
- This topic has 5 replies, 2 voices, and was last updated 9 years, 7 months ago by
Ernest Marcinko.
-
AuthorPosts
-
October 26, 2016 at 4:23 pm #10610
romain
ParticipantHello
I would like to use a static button to perform a particular search. Like a shortcut to a search term.
So I put this link href on my button :
http://www.mywebsite.com/?s=mysearch&asp_active=1
But it is not the results from Ajax Search Pro, it seems to be the results from wordpress.
How should I write a URL request to perform a search with your wonderful plugin ?
Thanks a lot !October 27, 2016 at 8:58 am #10620Ernest Marcinko
KeymasterHi Romain,
On the General Options -> Behavior panel make sure the search override is activated and the “Get” method is chosen: http://i.imgur.com/1jbN2it.png
It that is still not working, then the theme/other plugin might have an separate override function activated, in that case this might not be possible.
October 27, 2016 at 1:31 pm #10626romain
ParticipantHello
Thank you for answering.
I selected “get” in the option. But it’s the same. Something override the search.
I work with Enfold theme, and they say there is no special search function in this theme.So I tried another solution. I’ve used “Suggested search keywords”.
But results are opening in the ajax preview, and I don’t want to. Could these results open in a new page, at click on a suggested keyword ?
Thanx !October 28, 2016 at 3:35 pm #10655Ernest Marcinko
KeymasterHi!
I think I understand what you want now. You want to display the search results by visiting the search page via URL.
The problem is, that the plugin requires more (encrypted) parameters as well, but it is possible.
1. Make sure to change the redirect method to “GET”, we will need it ( General Options -> Behavior panel, https://i.imgur.com/1jbN2it.png)
2. Then do a test search via the form, with the phrase “test”, so you are redirected to the results page like so: https://i.imgur.com/KdRu6k2.png
3. Use this unique long URL, and change the “s=test” to the search phrase you originally wanted.And that’s it 🙂
October 28, 2016 at 3:46 pm #10657romain
ParticipantWhat a wonderful team ! Thanks, it’ working !
RESOLVEDOctober 28, 2016 at 3:49 pm #10658Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- The topic ‘URL search’ is closed to new replies.