Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,654 sales
Recently Updated

Stepasyuk supports this item

Supported

This author's response time can be up to 1 business day.

8948 comments found.

Hi,

I need help with my filter. Every time I use it, it refreshes the page and goes to the top of the page. Can I install it in a way that it either doesn’t refresh or it immediately drops down to the filter results?

The page I need help with: https://www.jbbassets.com/our-inventory/

Thank you

On top of this, I’m also wondering if I can do any pre-filling on the filter? So basically I want to create a filter for each “type”, so they click on a icon of a excavator and go to the pre-filled filter where only excavators are visible.

Hi luukspecht

Thank you for using the plugin.

There are two ways to solve your problem:

1) To enable and use AJAX feature (Filters -> Settings -> AJAX) To do it you also have to set CSS id or class of the Posts Container in your case it should be .elementor-element-7ade895 But you also use Lazy load images and this may not work.

2) To add to your filtering result page URLs an anchor that always scroll user to your posts container. In this case you have set ID attribute to your posts container via Elementor and to add in the functions.php of your active theme next code
add_filter( 'wpc_filter_term_url', 'wpc_filters_url_ending', 20 );
function wpc_filters_url_ending( $url ){
    return $url . '#mypostscontainer';
}

Where mypostscontainer is container id.

Hi,

We have an archive page of products (post type) where we have many filters. Everything seems to be working until we start using pagination. We have filtered and reached page 3:

https://hittebescherming.testpreview.nl/assortiment/bescherming-hoofdbescherming-or-voetbescherming/pagina/3/ Then we click something different (any categorie) and we get something like this: https://hittebescherming.testpreview.nl/assortiment/pagina/3/categorie-hittewerende-pbms/bescherming-hoofdbescherming-or-voetbescherming/

Pagina/3/ has moved up the url, breaking every request from that point. We checked your demo https://demo.filtereverything.pro/example/dark-overlay-and-ajax-loader/ and there it resets the page param everytime a filter value is clicked.

What are we missing?

Basic start: https://hittebescherming.testpreview.nl/assortiment/

Hi pimkaptein

Thank you for using Filter Everything PRO.

The main problem is that your site uses non-standard URL slug for pagination – “pagina” instad of classic “page”. And to solve this problem you have to change your pagination system/pagination code or to change Filter Everything plugin code. I think that to change word “pagina” to “page” will be easier, faster and more universal solution.

Hi!

Loving the plugin. I’m testing it on one page at the moment and I’m trying to use ajax for filters but it doesn’t seem to work.

I have given the Post Container an ID but the results appear blank. Could you give us a hand or point us in the right direction, please?

I’ll send you a PM with the website’s link.

Thanks!

Hi martingfisher

Thank you for using the plugin.

Filtering works if you open filter results page by direct link. And AJAX also loads new filtered products. But you use Masonry Isotope script that does not fire after AJAX loaded products and that’s why they stay hidden.

In common details this problem is described here in this article – https://filtereverything.pro/resources/ajax-related-problems/ You have to re-init your Isotope script after AJAX loaded products or ask a JS developer to help you. Or finally to decide what would be better to disable – AJAX or Isotope if you are not able to fix this problem by yourself. Unfortunately such issues are not covered by the CodeCanyon item support.

Hello,

I still see in filter term ID, not name.

I tried this function but doesnt work: 3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56

ACF field is post object with ACF name: ponuka_krajina This ACF field is in filter with key name: krajina

I tried both names in function, but doesnt work.

Hello mattiesk

Thank you for purchasing the plugin.

If you need to display ACF field labels instead of values, you can add to the functions.php of your active theme appropriate code from examples below. You also have to edit this code in accordance with your ACF field meta key(s). Here are these codes:
1. ACF field is Taxonomy object – https://gist.github.com/wpserve/0634299bcc67d03bef77119dd20c86e7
2. ACF field is field with choices – https://gist.github.com/wpserve/48277fc0320239d05b1d6e2c4da3db20
3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56
I hope this will help you.

Hi. I’m trying to use Filter Everything for a custom post type using Divi. I have created a page where the posts are listed and created a couple of filters for the posts.

You can see the page here: https://staging.ifamagazine.com/open-offers/

At the moment I have two filters setup, one for a text field and the other on a numeric one. The numeric range seems to work and if the range is changed the list of posts updates, but when any checkbox is ticked on text field filter the list of posts comes back with no results.

Update: I’ve now added a few more filters and most of them seem to be having some problems, most noticable is that when selecting a checkbox option to filter posts, the incorrect number of posts is shown.

This is looking like a database issue to me. I have re-created the custom posts and filters with new names and the plugins are working together perfectly.

Hello glasshalfpool

Thank you for using the plugin.

Indeed, this is known issue and some of the plugin users face it. But I’m glad that you were able to solve it by yourself. Most of users are not so experienced in WordPress :-)

Please, let me know if you will have any questions.

BIG PROBLEM!

If I have a filter set with 10 filters inside, all indexable, I have a lot of complexity to write all the seo rules.

I’ll explain.

If I have: Brand, Color, Category, Display Size, Wifi, Operating System.

And I want for each combination of filters to automatically generate the title, the h1 etc. I have to insert many seo rules.

I’ll have to insert a seo rule with “any brand”, then another rule with “any color” etc This is for all filters.

Then I will have to insert a rule for each pair “any brand” and “any color” “any display size and “any colors” and so on for all combinations.

Then I’ll have to enter the combinations with three filters etc.

In short, an impossible job to do.

Is there a faster way?

Hello goldfuturesrl

SEO Rules were designed in Filter Everything PRO based on the fact that search queries in Google contain maximum 2-3 keywords and that’s why 95% of useful SEO Rules may contain 2-3 filters maximum. People do not search by phrased like “Buy white Apple smartphone with 6,7 inch screen supporting Wi Fi and with iOS” but rather “Buy Apple Iphone” or “Buy Iphone 14 Pro Max”. So there is no need to create SEO Rules for all 10 filters, but only for different combinations with 2-3 filters. And the single Rule with 3 filters with Any values covers all possible combinations with these filters.

So there is no any other way than manually create all desired SEO Rules.

Hello,

I have a problem with the mobile version, everythings works perfect in desktop version but in mobile nothing works, no buttons (same filters from desktop but not working in mobile)

As i see in the inspect all the fields are display:none like it does not recognize the mobile version of the website.

My website has custom theme and i use the shortce <?php echo do_shortcode(‘[fe_widget]’); ?> to display my filters without a widget… but i tried with a widget too and nothing changes…

Is there a fix ?

Hello stepasyuk, thank you for your help, indeed i ve made a mistake with the body classes there, thank you again

But the button is fixed as you said but after the changes you ve made now the filters dont work etc on icognito but only when a admin is logged in…

UPDATE * PROBLEM SOLVED, thank you again everything works perfect!

Hello lefkatsaros

I’m glad that your problem is already solved :-)

Hi, where is the function provided to Riceman for specify a filter to be shown if a Specific Choice in that Parent Filter is made (but be hidden if any other choices in that Parent Filter are made)? Thanks!

Can you explain a bit how to use the hook ‘wpc_view_include_filename’?

?

Hi tinbob

Thank you for using the plugin.

I answered to Riceman here in this comment – https://codecanyon.net/comments/28549579 but I did not write him any code as this is not included in the CodeCanyon item support policy.

In general if you look on the code
apply_filters( 'wpc_view_include_filename', $filter['view'], $filter, $set ),

you will see that it pass through itself filter template filename and you can manipulate with this filename to replace original template with your own. To understand how it works you have to look inside includeFrontView(); method.

FYI – questions from user which support period expired have lowest priority in queue, so if you need to get support faster, please extend your support period.

Hi there, the project was put on hold for a while but I’ve just pickled this up again. I have several issues but thought it would be best to highlight them via video – https://www.loom.com/share/9b1f5a17590c48508904cfb144d7f083

Can you please review and advise?

Hi davejbryan

Already answered you under another comment.

Hi there

It was me, that made this post in the Wordpress forums: https://wordpress.org/support/topic/sold-out-variations/

Now I have purchased the plugins pro version, but can’t really seem to find out how I can do this.

Under “And what to filter?” the only option is Product query: Main Query.

Can you please help me out? A video would be very appricatiated.

Hi peterv29

Thank you for purchasing the PRO.

If the field “And what to filter?” contains only one option, just leave it as is and it should work correctly.

If you want to create filter by Stock status, you can do it as recommended in this example – https://demo.filtereverything.pro/example/by-stock/

If you want to force filter to consider variations, please enable checkbox “Use for Variations” for the filter by stock status. This checkbox is available under “More options” filter section.

Hi is possible customize filters mobile bottom, or use a Elementor Bottom? Sorry but default is very ugly. Regard

Hi favoledigitali

Thank you for using the plugin.

What do you mean “mobile bottom”. Maybe “mobile button”? Please, provide me with link to the screenshot what exactly you want to change.

Thank you.

This plugin does not work on my site, I would like a refund, please. The filters showed that products were found, but when “Apply” was selected, the page refreshed with all products still visible, even those that did not match the filter.

exploristlife

Please, send me credentials to your /wp-admin in accordance with this document I will check it myself. But please, do all things in accordance with the document to get a solution to the problem faster.

Thank you.

I have sent the credentials

Hello! I would like to use the same mobile button for the desktop version, it’s possible! Thanks a lot!

Hello sofserendipity

It’s expected behaiour of the Pop-up filters widget. When Pop-up is visible it expects that user selects all desired fitlers and click on the “Show” button to see results. Before clicking on the button this transparent layer prevent user from exploring posts/products on the page because they may not match to selected filters (may be not filtered yet) So I do not recommend you to remove this overlay.

The way to search is enabled to use ajax, that’s why once you choose the popup goes away and instead of the left layer. I removed the ajax search and now it is solved. I still think it is a problem to solve, since ajax cannot be used on mobile.

Sure, I understand you. And I would be glad to help you, but it is something out from the CodeCanyon item support scope as it is reladed with 3rd party software. You have to solve it by yourself or ask a developer to help you.

Hi! Really Love this plugin and I’ve got it to work with everything in my store thus far! When Looking at the sidebar filter, the color filter only displays the name of color. Is there a way I can set an RGB value to display the actual color on the sidebar filter, rather than the name? Thanks!

Hi danjt1629

Out of the box this is not work yet, but you can achieve this via small PHP coding and using Term HTML hooks – https://filtereverything.pro/resources/hooks/#term-html-hooks and add colored elements to the color filter terms.

Of course this expects that you are familiar with PHP or you have ask a devloper to help you with this.

This plugin isn’t working with my products. Please visit https://veritasmetastg.wpengine.com/ to see what I’m referring to.

Hello ryanrwood

Please, send me credentials to your /wp-admin in accordance with this document I will check it myself. But please, do all things in accordance with the document to get a solution to the problem faster.

Thank you.

Hi, Your plugin is amazing !

I’ve got some questions :

1 – Template overriging with oxygen builder :

I’m wondering if there is a hook or a tips to override template when using oxygen builder who disable theme… Maybe a hook to relocate the template from a custom plugin or folder ?

2 – Default dropdown text :

Is there a way to change the default dropdown text ? Actually it shows ” – Select xxxx – ”. We are a french website and need everything to be in french and sometimes personnalyse it depending of the context.

3 – Custom item ordering We are looking for a way to order product category item displayed by the plugin other than abc etc.. We really need a custom order. Is there a way to achieve ordering with a hook and filter ?

Thank you for your time.

@Stepasyuk Hi i wrote you 16 days ago and still no answer… now of course my licence is expired… I’m quite hesitating to renew support if i can get answers…

Hi there! Can you please check out the conflict between DIVI and filter everything pro? It was all working perfectly until just yesterday, but now its not allowing me to make changes with the divi builder throughout the site. I started with Divi support and they said its your team that needs to find the solution. Can you please help me with this?

Site: http://erikay18.sg-host.com

Hi erikakyoung

Sorry for too late reponse.

Please, send me credentials to your /wp-admin in accordance with this document and provide me with details, explanations (screenshots if needed) what exactly does not work.

Thank you.

Hello,

I am not sure why, but with my Filter Everything Pro Plugin the Filter of “Product-Tags” is working fine, but the “product-categories” are showing up with the correct number of products, but they are not selectable. after selecting a category, all products still appear.

Here an example of the correct filter for tags: https://cafe-peru.de/kategorie/kaffee/ Here an example of the not working filter for product-category: https://cafe-peru.de/kategorie/kaffee/espressobohnen/

The problem occurs in the ajax and non-ajax version.

Thanks in advance!

Hello rupertm2

Thank you for using Filter Everything PRO.

In general I do not see any problems in your examples. It looks like filter behaviour does not match with your expectations and you think that it is an issue.

This filter https://cafe-peru.de/kategorie/kaffee/espressobohnen/zubereitung-french-press/ does not show you any products because there are no such products that are in the category “Espressobohnen” and have tag “French-Press” simulteaneously.

Also you have set logic “AND” for tags filter and when you select two any tags it means that you expects to see products that are tagged to both selected tags simultaneously. Maybe the logic “OR” matches more to your expectations. Please, try to check filter with another logic.

Hello,

I was actually able to fix the problem this morning. There was a conflict with a setting in my Flatsome Theme and now it’s working. Please excuse me the inconvenience and thanks for your time!

Sure, no problems.

Great. I’m glad that your problem is already solved :-

If it is possible I would be thankful for a positive review about the plugin here on CodeCanyon – https://codecanyon.net/item/filter-everything-wordpress-woocommerce-filter/reviews/31634508

Thank you in advance!

Is there a hook/function to change update behaviour? I want to have a filter be updateable via ‘apply’ button when on mobile but on desktop I want it to auto apply without the apply button.

The obvious way to do this I thought was to simply create 2 filter sets with the appropriate settings and hide the one I don’t want on desktop/mobile – but creating two filters for filtering products and adding to the page via 2 shortcodes seems to stop them both from working? What are my options here? Thanks

Hello AgitateDigital

Interesting question I have to say.

I think you can create two Filter Sets with different settings and both they will work in accordance with your settings. When you click on filter term in a Filters widget the widget “knows” what behaviour is configured for it and reloads page or works in the “Apply button” mode.

Hi Stepasyuk,

Thanks for replying but it seems the plugin doesn’t allow for 2 filters to be created even if one isn’t being used (isnt added anywhere). The second I create a second filter the 1st one stops working.

Even as a test I just created a filter and added just one of the same taxonomies into the settings and that specific taxonomy then disappears form the live filter?!

I could be wrong but I don’t think the ID attribute within the shortcode is working. Since this other filter isn’t on the page yet it breaks that live one? The live one is added as:

<?php echo do_shortcode(‘[fe_widget id=”2640” show_selected=”yes”]’); ?>

There has been some other behavior like a filter showing on a page it shouldnt which makes me think the ‘id’ doesnt work.

It would be amazing to get a solution on this as aside from this I am a big fan of the plugin but if I can’t get mobile to work as required I’ll have to implement a different plugin or custom solution :/

Given the filter needs to be exactly the same as the one setup for desktop aside from the behavior of an apply button surely this could be achieved with a simple function that ties into the ‘wpc_mobile_width’ filter to modify the existing filter when on mobile?

I look forward to hearing back. Thanks in advance

Hi, in a product detail i would insert a section with all atribute for that product and have the correct link to listing filtered with your plugin.

Example: Product: Shoes Nike Green

In the product detail i would add: Brand: Nike (with link to filtered listing) Color: Green (with link to filtered listing) Ecc.

My actually stack is Beaver, Pods, and FilterEverythingPRO.

Thanks.

Hello

Nice question I have to say.

In general it is possible to get correct link to the page with desired filter values if you are familiar with PHP and you can generate $filters array in specific format. Below is code example that allows you to get link to the filter by Product category with selected value “laptops”. To get more array format examples you can use function flrt_selected_filter_terms(); that receives current selected filter terms on a filtering results page.

if( class_exists( 'FilterEverything\Filter\UrlManager' ) ){
    $urlManager = new \FilterEverything\Filter\UrlManager();
    //$filters = flrt_selected_filter_terms();

    $filters = array(
        'productcat' => array(
            'entity' => 'taxonomy',
            'slug'   => 'productcat',
            'logic'  => 'or',
            'values' => array(
                'laptops'
            ),
        )
    );

    if( $filters ){
        $link = $urlManager->getFiltersUrl( $filters );
        var_dump( $link );
    }
}

I hope this will help you.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey