Forums › Forums › Search & Filter Pro › Page Title For Search Results
- This topic has 22 replies, 2 voices, and was last updated 4 years, 7 months ago by Anonymous.
-
Anonymous(Private) March 30, 2020 at 4:25 pm #238355
I spoke to my hosting company Siteground, they’ve been at it for hours but can’t find anything wrong server side. Reported no issues with database permissions and the server access logs were all fine.
They also deactivated and reactivated all plugins, changed the theme directory as well. Oh no…
Is there anything else they could look for?
Trevor(Private) March 31, 2020 at 2:21 pm #238475So, here is a search:
_sft_location=cotswolds
_sft_partysize=ten-guests
_sft_features=garden-patio,internetThe code I added was this (replace the 12345 with your form ID):
<div> <?php global $searchandfilter; $sf_current_query = $searchandfilter->get(12345)->current_query()->get_array(); $locations_filter = $sf_current_query["_sft_location"]["active_terms"][0]["name"]; if ( $locations_filter <> "") { echo '<div>Location: ' . $locations_filter . '</div>'; } $party_size_filter = $sf_current_query["_sft_partysize"]["active_terms"][0]["name"]; if ( $party_size_filter <> "") { echo '<div>Guests: ' . $party_size_filter . '</div>'; } $features_filter_array = $sf_current_query["_sft_features"]["active_terms"]; if ( $features_filter_array ) { echo '<div>Features: '; foreach($features_filter_array as $value) { $features_list .= $value["name"] . ", "; } echo rtrim($features_list, ", ") . '</div>'; } ?> </div>
-
AuthorPosts