This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Get results in a different page and see vars in url

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Get results in a different page and see vars in url

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15958
    davsevdavsev
    Participant

    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!!
    David

    #15966
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi 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 [code]p_asp_data[/code] query variable base64 encoded and serialized.
    If you need the information from it, you will have to decode it like so:

    [php]parse_str(base64_decode($_GET[‘p_asp_data’]), $args);[/php]

    I hope this helps!

    #16072
    davsevdavsev
    Participant

    Hey,
    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.

    #16085
    Ernest MarcinkoErnest Marcinko
    Keymaster

    It 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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.