Support Forums

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

Mitchel van Eijgen

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 46 total)
  • Mitchel van Eijgen in reply to:
    Search history
    #276859

    Hi Trevor,

    How is the elusive V3 coming along? I’m also looking for this feature! I’m talking about the search history, it would be nice that users could search again for what they’ve already searched for.

    Would love to hear from you.

    Mitchel van Eijgen in reply to:
    TypeError: Cannot read property 'split' of undefined tag not being clickable
    #230244

    I’ve fixed the issue, but I have no idea why it is happening. With a lot of trail and error I’ve found that my class .alloy-item resulted in the bug. This class is no used anywhere (not in CSS nor in JS in my theme), but removing this class results in no more console warning. This is what it looked liked

    <div <?php post_class('col-lg-4 col-md-6 alloy-item alloy-item-berichten'); ?>>

    And changing it to, fixes the issue.

    <div <?php post_class('col-lg-4 col-md-6 alloy-item-berichten'); ?>>

    Here is the full code of the post type template content.php https://gist.github.com/mvaneijgen/b96a9ddb55f00881ecb936caa8312687

    I doubt that you guys use that class name in S&F.js, but it seems like the only explanation.

    Mitchel van Eijgen in reply to:
    TypeError: Cannot read property 'split' of undefined tag not being clickable
    #227911

    Good to know. It was not a the moment I shared it, but I set it back because the client requested it. I’ve disabled it again.

    When I switch to Pagination the same happens.

    I don’t really get what the difference is beween Ajax Container and Infinite Scroll Container. When I create a S&F I just enable and disable them until it works and most of the time it works when I don’t use the Infinite Scroll Container.

    As I check the example I see a search-filter-results-list which for me is alloy-results and a search-filter-result-item which by me is called alloy-item

    This last part I don’t really get

    > In that, the Ajax Container is not shown, as it is outside/cotains that code.

    What does the Ajax container need to contain? I though it needs to contain the items in the result, because that is the part that refreshes right?

    Mitchel van Eijgen in reply to:
    TypeError: Cannot read property 'split' of undefined tag not being clickable
    #227650

    Any tips on how to fix it? Weirdly enough I don’t have any issues on my local machine. I did have to fix the database on my staging server because somehow S&F didnt create the tabels so I had to manually create the tables in phpMyAdmin

    CREATE TABLE wp_search_filter_term_results (
                            id bigint(20) NOT NULL AUTO_INCREMENT,
                            field_name varchar(255) NOT NULL,
                            field_value varchar(255) NOT NULL,
                            field_value_num bigint(20) NULL,
                            result_ids text NOT NULL,
                            PRIMARY KEY  (id),
                KEY field_name_index (field_name),
                KEY field_value_index (field_value),
                KEY field_value_num_index (field_value)
    
                    )
    
    CREATE TABLE wp_search_filter_cache (
                            id bigint(20) NOT NULL AUTO_INCREMENT,
                            post_id bigint(20) NOT NULL,
                            post_parent_id bigint(20) NOT NULL,
                            field_name varchar(255) NOT NULL,
                            field_value varchar(255) NOT NULL,
                            field_value_num bigint(20) NULL,
                            field_parent_num bigint(20) NULL,
                            term_parent_id bigint(20) NULL,
                            PRIMARY KEY  (id),
                KEY field_name_index (field_name),
                KEY field_value_index (field_value),
                KEY field_value_num_index (field_value_num)
                    )
    Mitchel van Eijgen in reply to:
    TypeError: Cannot read property 'split' of undefined tag not being clickable
    #227322
    This reply has been marked as private.
    Mitchel van Eijgen in reply to:
    TypeError: Cannot read property 'split' of undefined tag not being clickable
    #227230

    The only way t fix it for me is disabling S&F which fixes the issue. Disabling all other plugins doesn’t seem to have an effect.

    Mitchel van Eijgen in reply to:
    Sync selection between two S&F filters on the same page
    #223305

    Ah I see if you disable the whole Ajax reloading the feature I want just works. I’m going to do some more research to see what I want and how much time to spend on this.

    Mitchel van Eijgen in reply to:
    Sync selection between two S&F filters on the same page
    #223256

    Thanks Trevor I’ll look in to it.

    Mitchel van Eijgen in reply to:
    Have external list of selected filters which can then be removed possible?
    #215642

    Hey @Trevor thanks for your message. What would be the hooks that I need to look in to getting this off the ground?

    Also there is no way to show how many results there are? Lets say I have 10 posts and I do not filter anything, there would be 10 results in total. But if I than search for post with the name “banana” there would only be 2 results, because there are only 2 posts related to banana. I would figure that this number would be fairly easy to get.

    Mitchel van Eijgen in reply to:
    Can get the right order Post meta (ACF post object field)
    #182762

    @Trevor I think I am explaining it wrong. I am not looking to change to order of the posts, I want to change the order of a specific S&F filter that I created using the S&F admin tools which is a list of checkboxes.

    This is what the field in S&F looks like

    And here is the filter on the front end of my site

    With CSS I already add icons for each item in the filter and that is the correct order. Now I need to hook in to the filter and change the order so that it is the same as in my admin, but I have no idea how to do that.

    I think I need the sf_input_object_pre filter and I already have this code

    function filter_function_name($input_object, $sfid) {
    
      if($input_object['name'] == '_sfm_category') {
        $input_object['attributes']['class'] = 'my-test-class';
        return $input_object;
      }
      return $input_object;
    }
    add_filter('sf_input_object_pre', __NAMESPACE__ . '\\filter_function_name', 10, 2);

    It took me an hour to figure out how I would get this name _sfm_category from my field category. It would be great if you could edit the docs and tell there

    If you are looking for your specific $input_object['name'] open your web inspector and look for the data attribute data-sf-field-name="_sfm_YOUR-FIELD-NAME"

Viewing 10 posts - 1 through 10 (of 46 total)