Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Ben Guth

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Ben Guth in reply to:
    Reset Button Functionality
    #268039

    Hi Trevor,

    We are planning to have another taxonomy that we would like to include as search query, but if a user have that taxonomy as search query we would like to simply return the form to its default state. But of course we wanted the reset to trigger after a new search query is being added.

    Ben Guth in reply to:
    Reset Button Functionality
    #267925

    Hi Trevor,

    Sorry, I think there was a typo on the category search term. I wanted to have an if statement that will check whether the search query has _sft_category. Then if that is true, I wanted to automatically reset the query to remove everything including the _sft_category.

    Currently, I have this code as a start but was stuck on how to call the reset function.

    
    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1184)->current_query();
    
    if ( $sf_current_query->get_field_string("_sft_category") ) :
      // reset the search query here
    endif;
    

    Thanks!

    Ben Guth in reply to:
    Require more hands on support
    #265082

    Can you provide advice on how to accomplish what I am trying to do? I keep running into snags. Is this something I can do with your plugin?

    Ben Guth in reply to:
    Add category url parameters
    #264876
    This reply has been marked as private.
    Ben Guth in reply to:
    Add category url parameters
    #264561

    Hi Trevor,

    I tried however the URL parameter just the category. /search-result/?_sft_category=item

    For the item category, it has 7 post counts. But when searched using that parameter the search result count exceeded more than that.

    By the way, I am using a custom post type for this so I am not sure if we can still use the same parameter for custom post types and custom taxonomies.

Viewing 5 posts - 1 through 5 (of 5 total)