Forums Forums Search & Filter Pro Some Ui questions

Viewing 6 posts - 11 through 16 (of 16 total)
  • Anonymous
    #140626
    This reply has been marked as private.
    Anonymous
    #140628
    This reply has been marked as private.
    Trevor
    #140646
    This reply has been marked as private.
    Trevor
    #140657
    This reply has been marked as private.
    Anonymous
    #141086

    ok, great help over skype Trevor – exactly what i was after and pretty much all sorted – thanks!

    for anyone interested

    1. use pre and print r instead of var dump to get the bits you need:

    $sf_current_query = $searchandfilter->get(7050)->current_query();
    	echo '<pre>'; 
    	print_r($sf_current_query->get_array());
    	echo '</pre>';

    2. I ended up with this in my page template to target the ACF meta name chosen in the S&F query – i also ended up trying to cope with the All values parts being sent if no specific options are selected (i hide all items selection in front end):

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(7050)->current_query()->get_array();
    
    if ($sf_current_query['_sfm_comfort']['active_terms'][0]['name'] == ""){
      echo 'no preference for comfort';
    } else {
      echo '$sf_current_query['_sfm_comfort']['active_terms'][0]['name'] . ' comfort';
    }
    Trevor
    #141110

    Thanks for sharing Mike. great to see you are up and running. I will close this thread for now. I you feel the support you received justifies a review, please feel free to leave one (if you haven’t already):

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/reviews/#comment

Viewing 6 posts - 11 through 16 (of 16 total)