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?
Hi,
Well, there are a few hooks available, depending on how exactly you want to realize this. If you open wp-content\plugins\ajax-search-pro\includes\views\asp.shortcode.results.php you can see all of them. There are two that stand out, in case you want to place custom HTML there: asp_layout_before_results and asp_layout_before_first_result
For example, here is a custom function to parse the passed options to the $options variable. For example, test_field value should be in $options[‘aspf’][‘test_field_1’] variable.
You can echo the custom HTML you need within that function: