-
Search Results
-
Topic: Trouble with get_fields_html
I’m trying to output the filtered data using your instructions on the Accessing the Search Data page (http://www.designsandcode.com/documentation/search-filter-pro/accessing-search-data/). However, the outputted field names and respective data are not wrapped in any sort of html tag.
I would like the output to look something like this:
<div class=”filterdata”>
<div class=”fieldname”>Categories:</div>
<div class=”fielddata”>Community<br/>Arts</div>
</div>Is that possible by manipulating the sf_current_query?
THANK YOU so much Ross for helping with my prior questions that are now RESOLVED.
Now I moved my Resources section that uses Search and Filter Pro live http://leadernet.org/featured-resources/ The search output goes to post type archive http://leadernet.org/resources/ .
When no search is performed I need this archive page title to say “Showing results for all resources” vs YOU SEARCHED FOR: nothingI can’t figure it out.
I can check for the length of of my text entry $my_search_term
I’m lost trying to have an indicator of none of taxonomy checkboxes being selected.$my_search_term = $sf_current_query->get_search_term();
$taxonomies = $sf_current_query->get_fields_html($fields, $args);
echo “<br> search term length is” . strlen($my_search_term); — is 0 when none in text box
echo “<br> term array length is” . count($taxonomies); — always 1 no matter selectionsWhat am I missing?
Looking forward to your guidance, Nina