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

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 5 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15958
    davsev
    davsev
    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 Marcinko
    Ernest 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

    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 :)


    #16072
    davsev
    davsev
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.