Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › URL search
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 1 month ago.
- AuthorPosts
- October 26, 2016 at 4:23 pm #10610
Hello
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 #10620Hi Romain,
On the General Options -> Behavior panel make sure the search override is activated and the “Get” method is chosen: https://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.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 27, 2016 at 1:31 pm #10626Hello
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 #10655Hi!
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 🙂
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
October 28, 2016 at 3:46 pm #10657What a wonderful team ! Thanks, it’ working !
RESOLVEDOctober 28, 2016 at 3:49 pm #10658You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘URL search’ is closed to new replies.