Forums Forums Search & Filter Pro ajax is not working

Viewing 10 posts - 11 through 20 (of 20 total)
  • Trevor
    #244785
    This reply has been marked as private.
    Anonymous
    #244792
    This reply has been marked as private.
    Anonymous
    #244798
    This reply has been marked as private.
    Anonymous
    #244804
    This reply has been marked as private.
    Trevor
    #244867

    I think we may have a fix for this problem. We are about to release (right now) a new version of Search & Filter, so can you watch out for that? I think it will be 2.5.1. I can’t see it on my dashboard yet, but it should be out shortly.

    Anonymous
    #244871
    This reply has been marked as private.
    Anonymous
    #244899
    This reply has been marked as private.
    Ross Moderator
    #244953
    This reply has been marked as private.
    Anonymous
    #245016
    This reply has been marked as private.
    Ross Moderator
    #245284

    This is coming as an option in the admin area in S&F version 3.

    For now you can do it with a PHP filter (add this to your child theme’s functions.php file):

    function sf_remove_first_option($input_object, $sfid){
    	
    	// ensure we are only filtering the correct field name - in this case the field we want to filter has the name '_sft_post_tag'
    	if( $input_object['name'] != '_sft_post_tag' ) {
    		return $input_object;
    	}
    		
    	// if we want to filter the options generated, we need to make sure the options variable actually exists before proceeding (its only available to certain field types)
    	if( ! isset( $input_object['options'] ) ) {
    		return $input_object;
    	}
    	
    	// now we know we have options, remove the first option
    	array_shift( $input_object['options'] ); 
    
    	return $input_object;
    }
    
    add_filter('sf_input_object_pre', 'sf_remove_first_option', 10, 2);

    Change _sft_post_tag for the name of your field.

    Thanks

Viewing 10 posts - 11 through 20 (of 20 total)