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

Reply To: Is there a way to use search parameters as conditional values?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Is there a way to use search parameters as conditional values? Reply To: Is there a way to use search parameters as conditional values?

#19364
wikotwikot
Participant

Hello, thanks for your answer.
I think I’m very close but when I try your code and try a var_dump it returns empty, is there a step I’m missing?
I don’t understand where is the search_id declared, is it inside the function? or is it given as a parameter? I’m a begginer with PHP, sorry.
Other thing I saw when trying your code is that the HTML code I try to echo with the hooks, gets to the bottom of the page, after the visible area.
What I want is to be able to do is to use an if statement like this:
[code]if(‘field_name’==’value’){
//HTML goes here}[/code]
Thanks again for the help.