From your Gravity Form, you can pass the values in the query string, similar to how Google would do it when you search for something.
You can do the same thing with your Gravity Form on the confirmation page. Just select "redirect" radio button on the confirmation tab of your form, enter the URL to the page where your WP_Query is going to run, check the box "Pass Field Data Via Query String" and then in the box below, enter your parameters (fixed strings) and your entry values (merge tags.)
Then, in your page template, you read the query string being sent from your form, and your page template does the magic to craft a WP_Query and display the results. You can use this in your template to debugging the query string values being sent:
[php]
echo "<pre>"; print_r($wp_query->query_vars); echo "</pre>";
Let me know if you need more help after giving that a try.
Posted 12 years ago on Tuesday October 2, 2012 |
Permalink