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

Reply To: Search Results Page

#19686
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

I’m very sorry about the delay, I missed your ticket by accident.

The results page usually does not contain those variables, as the results page handler opens a new output buffer, where these get reset/unset. However it is possible to obtain the options via the$_GET[‘p_asp_data’] variable, that is passed through the request, with this custom code:

After this the $s_options should contain the options from the form.

The $r variable is basically each result passed to the results page, in this case it’s equivalent is the $post within the results loop.
If you want to access which results the plugin passed to the reqults page, you can do it by accessing the query on the beginning of the file (before any query changes), like so:

Then the $results variable should contain the results passed to this page.

Please note, that this sort-of qualifies as a modification request, so I cannot guarantee that my suggestions will work in all cases. I still try my best to help you out though.