Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,650 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8944 comments found.

Hi Victor, is there a way to change name or HTML of filter terms by their status, i.e. if the filter is active or not? I was looking at the hooks under “Filter term name hooks”, but can’t see any way to apply this to active filters.

My goal is to create a simple “Show only products on stock” filter, but it should be just one button. For that purpose I would like to change the label to “Show all products” as soon as it is active. So this would work just as a toggle, which I didn’t find a way to realize any other way.

Or am going at this all wrong?

Hi 0rca

No, there is no such ability just by using some hook. It would require custom coding as well. So it would require if the page is filtered, then get a check for the needed filter term, then run your code, to change it by the JS or PHP with either hooks.

You can just make one option “in stock” and nothing more, just remove the rest unneeded ones from the filter set, there is an include/exclude functionality when you click on more options.

Best Regards,
- Victor

I already sent the credentials

Hi VahdeProjects

We have checked the side and the issue was that during creating the filter you copied the meta key with the space before it so it was like this ” _sale_price” instead of this “_sale_price”. We deleted the old filter and added it one more time without extra space and everything is working nicely.

Best Regards,
- Victor

Hi, I am getting very frustrated because I have waited a long time for my response. I am trying to run my business but keep stalling waiting for a response. Once again, I have no idea what this message means! “It appears that this page does not contain a container with the specified «HTML id or class of the Posts Container». Try to specify the correct one in the Filter Set settings or the common plugin Settings.”

I have no idea how to even FIND the HTML ID or Class!! I’m not a coder!

We thought that the issue was in not showing colors in the filter widgets from variations when you add new ones to the product variations. But everything is working fine there. If you mean that it is not showing some color swatches on a certain product page, then our plugin has nothing to do with it.

Best Regards,
- Victor

Hello,

I am having the exact same filtering issue again, but this time on this page: https://mydressedit.com/holidays/

I took your advice as you mentioned:

“We have checked the site and changed the filter configuration to use the correct “class” Please note that the class is with a dot at the beginning ”.my_class” This class (that we specified) is generated by the Emelentor (if you edit the page it might change), you can specify your own class or id ”#this_is_my_id” for container if you are using Elementor.

This is how you can find the needed class on the page -> https://prnt.sc/ig-x9EdwaQrW

Also we have choose the correct query from the “And what to filter” drpdown in the filter set settings.”

On this page (https://mydressedit.com/holidays/), the specified class is ” .elementor-element-d5b85f5 ” ... I also insert this in the filter dropdown…. why isn’t it working? Why aren’t the filtered products populating?

Hi dresseditfb

The issue here was that you have chosen “first query” We just changed it to this one – https://prnt.sc/hGg7xJ8yyCf3 and everything is working well now.

Best Regards,
- Victor

Hello, is it possible to update the H1 tag from an SEO rule dynamically using Elementor? My title tag is showing correctly in the browser tab, but I am not sure how to get the H1 on the page to update. My site is plumbingjobs.com.

Hi casey116

Thank you for choosing Filter Everything PRO.

By default Filter Everything uses the next hooks to modify H1:
add_filter('the_title', [ $this, 'seoH1' ], 10, 2 );
add_filter( 'woocommerce_page_title', array( $this, 'seoH1'), -5 );
add_filter( 'get_the_archive_title', array( $this, 'seoH1'), -5 );
add_filter( 'avada_page_title_bar_contents', [$this, 'seoH1'], -5 );
add_filter( 'post_type_archive_title', [$this, 'seoH1'], -5 );
add_filter( 'elementor/utils/get_the_archive_title', [$this, 'seoH1'], -5 );
You can attach the SEO Rule’s method to the needed hook:
if( class_exists( 'FilterEverything\Filter\Pro\PluginPro' ) ){
    $seoFrontend = \FilterEverything\Filter\Container::instance()->getSeoFrontendService();

   add_filter( 'your_theme_h1_hook', [$seoFrontend, 'seoH1'], -5 );
}

Best Regards,
- Victor

Ok, thank you. I tried putting this in the functions.php folder but it did not work. Where does this code go?

This part of the code:

if( class_exists( 'FilterEverything\Filter\Pro\PluginPro' ) ){
    $seoFrontend = \FilterEverything\Filter\Container::instance()->getSeoFrontendService();

   add_filter( 'your_theme_h1_hook', [$seoFrontend, 'seoH1'], -5 );
}

Should go to the functions.php file, and you should specify the hook that will allow you to modify the H1.

For example, WooCommerce use “woocommerce_page_title ” – https://prnt.sc/3vu7E-a1ovqi so it is hooked on it to change the data:

add_filter( 'woocommerce_page_title', array( $this, 'seoH1'), -5 );

So basically you need to know the hook of the widget you are using in Elementor for H1 (you can ask it in their support) and place that hook name instead of “your_theme_h1_hook” in this code:

if( class_exists( 'FilterEverything\Filter\Pro\PluginPro' ) ){
    $seoFrontend = \FilterEverything\Filter\Container::instance()->getSeoFrontendService();

   add_filter( 'your_theme_h1_hook', [$seoFrontend, 'seoH1'], -5 );
}

Best Regards,
- Victor

Hi I have a few more questions, 1) I implemented the search bar, whenever I use it to search something all the other filters disappear. How can I solve it? 2) I’m using 3 filter sets in a single page, there’s a way as I can use only one apply/reset button that controls all of them? 3) I’d like to have the checkbox closing everytime after a choice is done, how can I do it? Thank you, Vittorio

Hi vittoriozeddabus

1) If you choose to hide filter terms and empty filters, then if you search anything they might be hidden depending on what products it finds. But would be nice if you could send the link to the page with the issue so we could check it.

2) No, unfortunately, this is impossible. You can add only a reset button to reset all of the filters, here is the function that returns the link with the reset URL link:

if( class_exists( 'FilterEverything\Filter\UrlManager' ) ){ $urlManager = new \FilterEverything\Filter\UrlManager(); $resetUrl = $urlManager->getResetUrl(); echo '<a href="'.$resetUrl.'">Reset filters</a>'; }


3) Could you please provide more information on this one? And what exactly do you mean by “I’d like to have the checkbox closing every time after a choice is done”

Best Regards,
- Victor

Thank you very much, I solved the first two problems.

I will try to explain myself better, I chose to have the filters folded so if I want to filter something I have to unfold them and then choose. It might happen that an user opens some of them but just uses one so I’d like to have all the filters folded again right after a filtering option is chosen.

Thank you again, Sincerely Vittorio

Hi Vittorio

There is no such default plugin functionality to do so. This can be done only by custom coding which will apply the “wpc-closed” class on all of the folding filters when you choose any filter terms.

Best Regards,
- Victor

Hey, I followed the instructions on https://filtereverything.pro/resources/with-wpml-polylang/ but when I try to translate the filter set the filters themselves don’t show up… how do I translate the filter title etc. as well? M.

Hi mbaierl

You need to create a filter set for each language and place them on the needed pages. Can you provide a bit more information on where exactly the issue is appearing? Like you cannot create a translation of the filter set? Or when you are switching languages on the front?

Also, you can send the credentials to the wp-admin dashboard following this document so we can check it.

Best Regards,
- Victor

Hello,

I install plugin, set everything in your video and you can see my settings for plugin here : https://imgur.com/a/Uwq02rm, but after that when i try to set up this plugin in sidebar : https://imgur.com/a/Uwq02rm and nothing is showing. I try every place on widgets, but still never show up. Do you know from where can come this problem and how to set up to shown this filter?

We turned off only those plugins that were causing issues in the query monitor, then flushed the cache from WP Rocket. We didn’t have to turn all of them as it started to work after that. So the issue was hiding in the cache.

But you really do have some conflict on the site which is not connected to our plugin. We would recommend definitely checking them and resolving them in order to make the site work normally.

Best Regards,
- Victor

I find from where is conflict finally, because i have problem with 2 integrations on my website. Before 2 weeks i change host company i used and they are choosen other php version than before and from there was all this problems! Now my other integration works fine. Thank you very much you did a great job. I will give 5 stars now and tommorow i will try to translate 2-3 words with loco translate, because i can’t with translatepress. I will write you again if i can handle with that! Have a nice evening!

Hi dragoev10

Thank you very much for the review. It really means a lot to us. And we are glad to hear that the other issues were resolved on the site as well.

Best Regards,
- Victor

Hi, I am interested in your plugin, before purchasing the plugin I have some questions, which are 1. Can the plugin be used to filter posts/blogs/articles, not only woocommerce products? 2. Can I customize the filter based on lots of categories? For example, I want to search an article on my website, based on specific product types, specific cert types and specific countries. After I select 3 of the categories, it will help me to filter the final article that matches the 3 categories, is that work?

Hi mcreativedept

Thank you for your interest in the Filter Everything plugin.

1) Yes, you can filter posts/blogs/custom post types and so on.

2) We would not recommend doing it, as you cannot create a couple of the same filters in one filter set. You would need to create a couple of filter sets using the include/exclude functionality and display all those filter sets on one page.

What we recommend is to separate it, and create a custom field for each filtering parameter, like this: years, months, hours, basically 3 custom fields and you can create 3 separate filters by those custom fields meta keys. So when you choose options in the filter widget it can find the needed posts.

Best Regards,
- Victor

For 2), do you mean my article cannot have 3 categories? For example, this article is about Travelling (category 1), in Australia (category 2), suitable for Family (Category 3). When people select at the filter, they choose Travelling, Australia, Family, then this article will shown, is this can or not?

Your posts can have as many categories as you want. It will look like in this demo – https://demo.filtereverything.pro/posts/ all categories will be in one filter.

If you want to create a couple of filters from categories, you would need to create a couple of filter sets and use include/exclude to make it.

Best Regards,
- Victor

We are using Cloudways for hosting, which comes with a free Redis Object Cache plugin. Unfortunately it seems to create a conflict with Filter Everything PRO and the filters no longer work, when the plugin is enabled.

I contacted Cloudways support and they gave me the following link: https://objectcache.pro/docs/ignoring-groups

They also told me to reach out to you. Here’s what they said:

Furthermore, you can check with the developer of the plugin regarding the group that needs to be excluded from the filter plugin that you are using.

Can you help exclude the filters from the caching? The Object Cache is really important for our site as it drastically improves loading times, so I wouldn’t like to just deactivate it to get Filter Everything PRO working properly.

Hi webessenz

We can tell you the transients that are used in the plugin and if you have the ability not to cache them, then it will work for you.

wpc_terms_*
wpc_posts_*
wpc_variations_*
wpc_posts_variations
wpc_plugin_version
wpc_filters_query

The first three are so-called wildcards when instead of * there is dynamic data. The rest have a permanent name.

If you can specify that such transients are not cached, then your problem will be solved.

Best Regards,
- Victor

Hello,

when I am using the click to filter function, there is no native option to enable a reset filters button. I found this code snippet through search, but it reloads the entire page and isn’t as fluent as AJAX, when you click on the filter attributes: if( class_exists( 'FilterEverything\Filter\UrlManager' ) ){ $urlManager = new \FilterEverything\Filter\UrlManager(); $resetUrl = $urlManager->getResetUrl(); echo '<a href="'.$resetUrl.'">Reset filters</a>'; }

Would it be possible to either implement a reset filter button (right now it only works, when you enable the apply filters button – which we don’t want to use) or can you deliver another code snippet that will reset filters using AJAX?

Hi webessenz

Thank you for choosing Filter Everything PRO.

Yes, it is not meant to work with AJAX as it is all used in a filter set and requires quite a lot of dependencies. What can you do is use “Chips” there is reset all chips when you choose any filter term, perhaps it will be more useful and it is working with AJAX as it was implemented to work seamlessly with filter set settings. You can place the chips using a shortcode on any place on the page – https://filtereverything.pro/resources/shortcodes/#chips

Best Regards,
- Victor

Hi, just wanted to ask a few things. 1) How can I change the font, the color, the dimension of the texts of the filter? 2) Can I change the fact that after I filter it returns at the top of the page? I’d love to have it staying in the same spot where it was before filtering 3) How can I let the user choose more filtering options and then filter them, rather then having them loading after every filter is chosen?

Hi vittoriozeddabus

Thank you for choosing Filter Everything PRO.

1) How can I change the font, the color, and the dimension of the texts of the filter?

You can use browser insect tools to find the needed element and its classes. Like this – https://prnt.sc/Yo8EMvlrhoCh then go to Filters -> Settings -> Experimental -> Custom CSS and add the needed styles to change color, font size, and other, like this:

.wpc-filter-title {
    color: red;
}
2) Can I change the fact that after I filter it returns at the top of the page? I’d love to have it stay in the same spot where it was before filtering

You can use AJAX filtering, you can turn it on from the Filters -> Settings -> General -> Try to use the AJAX option, you would need to specify the class or ID on the page that you will filter that will be updated by the AJAX, it should be the container that has all of your posts inside of it. Like this – https://prnt.sc/ncazv29qXdla

3) How can I let the user choose more filtering options and then filter them, rather than having them load after every filter is chosen?

From filter settings you can turn on “Apply Button” mode, then you would need to choose all of the options and hit update to apply them.

Best Regards,
- Victor

Hello,

Before buying plugin i want to ask you some question :

1. Is there option,that i can make all filter options no follow. For example : i have one category Autumn/Winter collection and i don’t want to optimize the filter there, because it will be duplicate content.

2. Is it possible to set a filter for each individual category? And also again can i put some of the options like size or price to be no follow?

Thank you!

Hi dragoev10

Thank you for your interest in the Filter Everything plugin.

By default, all filtering pages are not indexed until you create SEO Rules for them.

You can create multiple filter sets, and place them on any category that you need, so on each category you will have a separate filter set. Also, you can create SEO Rules for specific categories only.

Price by default is not used for indexing as it is bad practice.

Best Regards,
- Victor

Hello,

I am having an issue with my On Sale filter. It’s not filtering the sale products properly. It’s filtering all the products as sale products. And for some reason it’s showing the word ‘No’ on the frontend of the website.

please see the configurations in the links below:

https://tinypic.host/image/Sale-Error.XOQhx https://tinypic.host/image/Sale-Error1.XOzcf

Website: https://renoestate.com/shop

Thanks!

Hi VahdeProjects

Thank you for choosing Filter Everything PRO.

Can you please send the credentials to the wp-admin dashboard following this document so we can check it?

Best Regards,
- Victor

Hi, Everything seems to be working, except actually filtering the content. We are using the Avada theme with custom post types. We see the filter on the left side, with the correct count of items per taxonomy. But the actual filter isn’t doing anything when it reloads the page. See https://segments.ai/resources/open-datasets/

Credentials have been sent via PM.

Hi Victor, I dissabled the 2FA. You should be able to log in.

Yesterday evening I was still trying to get it working, and it somehow got stuck on the “multi-sensor” filter. So it worked for a second somehow. But I also got then a weird “are you sure you want to log out” screen. What I can pick in the “and what to filter” section changes often when I update (=save) the filter. Sometimes – like now – I do see the correct post type (Dataset querry) and sometimes I can’t pick a querry.

So now you do see all the datasets and the correct count in the filter, but it ain’t filtering.

We have checked the site, and the issue was in the caching, memcache option. Which was a caching query and basically displayed the same results. We turned it off and it is working normally now.

Best Regards,
- Victor

You rock :) Thank you so much!

I am building a site that uses WooCommerce along with ACF, Filter Everything Pro and Elementor. I am having a problem where the Filters and the Chips are all working on the Shop page (https://mcdm.inventivewd.com/products/) but not on a product Archive page (https://mcdm.inventivewd.com/product-category/residential/). It is very important that it work on an Archive page because that is what we are using for just about everything on the website.

I created this video so you can understand more what I am talking about: https://watch.screencastify.com/v/CogfH8lqVQ5jOWBYU1P7

Basically, if you go to the Shop page and click on the filters on the left, everything filters correctly. The best way to test is click on Application -> Residential and then Manufacturer -> Daikin which should result in showing only this product (https://mcdm.inventivewd.com/product/ufeconj18-60-2/). This product is the only one I have any sub-filters set right now (any field other than Application).

If I go to a product archive page… https://mcdm.inventivewd.com/product-category/residential/ (this is just the standard WooCommerce product category) and click on Daikin again, it doesn’t filter. Even though the chip shows at the top of the page.

I find it strange that it does work on the shop page and not the archives page.

In Settings I have the “HTML id or class of the Posts Container” set to .elementor-products-grid which is on both page types.

I each filter I have “Where to filter?” set to Common WordPress Pages -> All Archive Pages for this Post Type. I have tried other settings here but this seems to be the one that they are all set for.

For all fields other than Applications I am using ACF to create a custom taxonomy and field group that produces the links on the individual product page (https://mcdm.inventivewd.com/product/ufeconj18-60-2/). These are extremely important for cross-referencing products.

Can you help me understand how to make the filters work on both the products (shop) page and the product archive pages?

Finally, I noticed that the chips don’t show on a product archive page and the item for that specific page is checked and grayed out and doesn’t show up as a chip. See this page again: https://mcdm.inventivewd.com/product-category/residential/. Residential is selected and I can’t unselect it and there is no chip for it. Is this just the nature of an archives page or is there a way a user can deselect it?

Hi mminten

In such cases, it’s usually best to reach out to Envato support for assistance in retrieving your password. With their help, you may be able to use your two licenses, which gives you the ability to activate them on four sites.

Now to the issues, we have checked the site. The problem here is that the category page is using a different query, so you cannot place one filter set for everything you would need to separate one for all archive pages and a second filter set only on product categories. We created a test filter to show it so you can check that everything is working.

Also, you don’t need to create a filter set for each filter, you can use one filter set and place it inside those filters as we did with the test filter.

Best Regards,
- Victor

Ok, this makes sense now. I had to rework the filters for the products page, for each taxonomy and for the search results page. The only problem I have now is that the search page doesn’t have working filters.

Check out this link: https://mcdm.inventivewd.com/?s=adapter

You can see that there are 0s next to all of the filters on the left.

On the other hand if I go to: https://mcdm.inventivewd.com/products/ or https://mcdm.inventivewd.com/products/accessories-curbs-and-accessories/ I can see the options that are available (I added more info to our test products).

Could you give me a tip on how to get these to populate?

Hi mminten

We have checked the site and here are some of the issues.

1) To perform accurate searches, it’s necessary to utilize the “product search” widget. Therefore, we have designed a test page that incorporates this widget – https://mcdm.inventivewd.com/test-search/ – which you can try out. The single search bar provided by Elementor will not function correctly as it fails to apply the required post_type parameters for precise searching.

2) And here you will have results, and everything is working together – https://mcdm.inventivewd.com/?s=adapter&post_type=product

3) We had to turn off the Relevanssi plugin in order to make it work. However, we have plans to make it work seamlessly with Relevanssi’s searching algorithms in future updates.

Best Regards,
- Victor

Hi, we have problem with activate licence in our client site. Send PM.

Hi leiti

The license is activated and everything is working well.

Best Regards,
- Victor

Great, thank You for help.

There is this Unkonw Error message when I tried to activate my license. Could you help me out on this, please? I have PM the login credentials to your support. Thanks.

Thank you for your reply. I’m still seeing the Unknown Error message though. I have PM you my license key just now.

The license was activated and everything is working well.

Best Regards,
- Victor

Thank you, much appreciated…

Hello, I’m working on a multilingual Wordpress / Woocommerce site. I’m using your module to filter a product catalog.

I use WPML for translation. I translated the Woocommerce attributes with the WooCommerce Multilingual & Multicurrency module.

However, the translated attributes don’t appear on the pages.

For example, on the English page https://laboratoires-diamex.com/en/our-cosmetics/ we see the attributes in French and not in English.

How can I display the translated attributes?

Regards

Hi talaios

Thank you for choosing Filter Everything PRO.

Please send via PM your email address, so we can send you the latest version of the plugin, which should fix this. The update soon come up here on the site as well.

Best Regards,
- Victor

Having license issues: Unknown Error. Set credentials.

Hi pdensborn

Thank you for choosing Filter Everything PRO.

Please send the license key via PM as well.

Best Regards,
- Victor

Hi, we again a lot of issues with the filter. Can you guys help? You have access to our admin ? https://petsolutions.be/winkel/

Yes, it is working in another language. Same as you had an issue with the switch for some languages, perhaps it is somehow connected.

Best Regards,
- Victor

HI, what is happening if we change the url prefix? We see a huge increase in cpu / Ram usage when we change on?

Hi mrijnwal

Can you please provide some additional information on that matter? With a video or anything so we can better understand what you mean by “huge increase in CPU / RAM usage when we change on” during the process of changing it or after you change it increase and don’t go down?

Best Regards,
- Victor

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