Forums › Forums › Search & Filter Pro › Getting value from url
- This topic has 45 replies, 2 voices, and was last updated 8 years, 4 months ago by Anonymous.
-
Anonymous(Private) July 25, 2016 at 10:39 am #52072
If I use this code:
<?php //Get a multiple fields values by passing an array of field names //replace 1526 with the ID of your search form global $searchandfilter; $sf_current_query = $searchandfilter->get(15)->current_query(); print_r $sf_current_query->get_fields_html(array(), array(‘show_all_if_empty’ => false)); ?>
It “breaks” the page…?
Trevor(Private) July 25, 2016 at 10:43 am #52076I see the error. My bad for copying and pasting. The forum has changed the quotes 🙁
<?php //Get a multiple fields values by passing an array of field names //replace 1526 with the ID of your search form global $searchandfilter; $sf_current_query = $searchandfilter->get(15)->current_query(); print_r $sf_current_query->get_fields_html(array(), array('show_all_if_empty' => false)); ?>
Or, I hope that is it.
Trevor(Private) July 25, 2016 at 10:51 am #52078This?
<?php //Get a multiple fields values by passing an array of field names //replace 1526 with the ID of your search form global $searchandfilter; $sf_current_query = $searchandfilter->get(15)->current_query(); print_r($sf_current_query->get_fields_html(array(), array('show_all_if_empty' => false))); ?>
-
AuthorPosts