Forums Forums Search & Filter Pro Page Title For Search Results

Viewing 10 posts - 11 through 20 (of 23 total)
  • Trevor
    #238254
    This reply has been marked as private.
    Anonymous
    #238257

    Ok great thanks.

    I really don’t know why it’s happening, I noticed shortly after I spoke to you on Friday. I’ve tried to change the caching speed, deactivated and reactivated the plugin too.

    No database connection issues either.

    Trevor
    #238259
    This reply has been marked as private.
    Trevor
    #238261
    This reply has been marked as private.
    Anonymous
    #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
    #238426
    This reply has been marked as private.
    Anonymous
    #238432
    This reply has been marked as private.
    Trevor
    #238463
    This reply has been marked as private.
    Anonymous
    #238465

    That’s great, thank you!

    Ok no worries.

    BTW, the search filter caching works fine on the live site. Maybe its something to do with the staging environment.

    Trevor
    #238475

    So, here is a search:

    _sft_location=cotswolds
    _sft_partysize=ten-guests
    _sft_features=garden-patio,internet

    The 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>
Viewing 10 posts - 11 through 20 (of 23 total)