Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Get results in a different page and see vars in url
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years, 9 months ago.
- AuthorPosts
- December 21, 2017 at 7:48 am #15958
Hey,
Is it possible to see the serch results in a different page?
As well Is it possible to do the search in get methos so I will be able to see the search parameters in in the url line?Thank you!!
DavidDecember 21, 2017 at 9:55 am #15966Hi David,
It is possible to enable search override to the search results page with GET method: Return and Magnifier icon action and Search override documentation
You can define a custom URL as well in the redirection, if there is a wordpress search loop active, the plugin will override those results there – if that is what you are looking for. The search params are sent via the
p_asp_data
query variable base64 encoded and serialized.
If you need the information from it, you will have to decode it like so:parse_str(base64_decode($_GET['p_asp_data']), $args);
I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 28, 2017 at 8:01 pm #16072Hey,
I have changed the redirection url to a custom one,
The pgae redirection has a certain page template.
for some reason I keep seeng the results in page.php template file.What can be the reason osf taht?
Thank you.
David.December 29, 2017 at 12:39 pm #16085It is up to WordPress to determine which template to use upon redirection. I’m not too experience with template hierarchy and such, but I believe it depends on which query variables are set. A possible workaround could be perhaps to make an if statement on the top of the page.php file to include the correct template file. There might be a better solution though, I’m not sure, it is a template and permalink related issue – which I’m not experienced with.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.