Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,657 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8952 comments found.

Dear Support Team

Is it possible to enable AJAX only for specific filter sets and disable for all other filter sets?

Thanks, Philipp

Hi Philipp

Only via hooks.

If you want to turn it off use the same code just here:
    if( $key === 'enable_ajax' ){
        return 'on';
    }
Change the ‘on’ to the ’’ like this:
    if( $key === 'enable_ajax' ){
        return '';
    }

Also, there is this code example that turns off AJAX for desktop and certain pages, but you can rewrite it to your needs with an array of pages where the AJAX should work, and on rest should not work.

function custom_wpc_get_option($value, $key) {
    if (is_page(233) && !wp_is_mobile()) {
        if ($key === 'enable_ajax') {
            return '';
        } 
    }

    return $value;
}
add_filter('wpc_get_option', 'custom_wpc_get_option', 10, 2);

Best Regards,
- Victor

Hi Victor Thanks, that works :-)

Hello team

Unfortunately, I am struggling with the plugin, my site is not working when the plugin is activated below is the error I got from my host

PHP Warning: Undefined array key “cols_count” in /var/www/wptbox/wp-content/plugins/filter-everything-pro/src/Admin/Widgets/FiltersWidget.php on line 590”

I hope you can help me solve the issue as my support subscription is outdated

Many thanks

Hi sjuneidiit

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

Also, please provide step-by-step instructions, on how we can recreate this issue.

Best Regards,
- Victor

I’m having trouble getting the filter to show on the WooCommerce shop page.

The filter set “Where to filter” option is set to “Common WordPress Pages” > “Shop Page”. This just displays “No one Filter Set is related to this page.”. If I click the eye icon next to “Where to Filter” it opens the correct page.

If I set “Where to filter” to “Product Categories” > “Any Categories” the filter displays on the product category pages.

There are no errors related to this on the server.

Hi WyattT

Thank you for choosing Filter Everything PRO.

Try to choose in the “Where to filter” – “Pages + Name of your shop page”

Best Regards,
- Victor

Setting it to the specific page worked.

In some themes, the shop page can be like a simple page, and in others like a common page.

Best Regards,
- Victor

Hello,

I’m experiencing an issue with the filter function in the free version. As a clothing seller, my products have a “size” attribute with variations (S, M, L, XL, XXL). However, when a product is out of stock in a specific size (e.g., L), clicking on that size in the filter still displays products that don’t have L in stock. It seems the filter only considers attributes, not variations.

Is there a workaround for this issue in the free version? Or would upgrading to the pro version resolve this problem?

I appreciate your assistance.

Thank you

Hi garageroom

Thank you for choosing Filter Everything PRO.

No, unfortunately, the free version does not work with the variable products. This option is only available in the PRO version of the plugin. Once you set up your filter, click the “more options” From there you can turn on the option called “Use for variations” for the needed filters.

Best Regards,
- Victor

Hiya,

We have an issue with our search page where the filters are not ‘hiding’ when they should be. This can be seen here – https://atgfishing.co.uk/?s=pellets&post_type=product&dgwt_wcas=1 Basically all brands are showing, colours,hook types etc when they shouldnt be. How do we fix this please as it appears to be on all searches

Hi TopNWS

Please try it with this link – https://atgfishing.co.uk/?s=pellets&post_type=product

More likely you are using some search plugin that is using custom search algorithms, that are not compatible with the filtering.

You can use the default Woo “Product Search” widget for it.

Best Regards,
- Victor

Hi, problem is that your search didnt show the relevant products it showed 222 results compared to the 13 it should have shown.

This is the default Woo search widget link (how it should look) – https://atgfishing.co.uk/?s=pellets&post_type=product

If you use another search like this – https://atgfishing.co.uk/?s=manilla&post_type=product it will find 19 products, and the default Woo search is working with the title, content, and perhaps SKU for products.

You are using a third-party search plugin that also searches by the custom fields including other entities, and it is using its own search template with not compatible algorithms.

If you want to filter search results, please use the default “Product Search” widget for WooCommerce.

Best Regards,
- Victor

Hi! How can I add a dynamic title to my page so that the filter generates the title itself? How can I retrieve the selected filter parameters and insert them into the corresponding layout fields? https://imgur.com/8rplBdp – title https://imgur.com/Z3riRLc – filter parameters

Hi luchykkolya

Thank you for choosing Filter Everything PRO.

You need to create the SEO Rules in order to do so. Please check this page – https://filtereverything.pro/resources/seo-rules/ it has all of the information about it.

Best Regards,
- Victor

Good morning,

I really like your plugin, but it seems I have a problem with the product filters.

I have two filters (color and material) that pull from the product attributes, and another filter that is the discount percentage, which reads from a custom field (discount). The latter works perfectly and only shows the products with the selected discount. However, the first two filters (color and material) in many cases show nothing (for example, if filtered by “White” or “Aluminum”). The thing is, there are products, and the plugin identifies them correctly (on my staging site, the number of items even appears correctly), but it doesn’t filter and just shows that no products are available. I have an infinite scrolling plugin, but I deactivated it, and the behavior remains the same.

You can see the identical behavior on the following two URLs (live site and staging):

http://pilma.com/categoria-producto/muebles/ (live site) https://pilma.com/desarrollo-pilma/categoria-producto/muebles/ (staging)

Would you be so kind as to help me with this?

Hi fmanez

The archive page template has settings to display the “current category”, which modifies the query on each category page with the unique data.

The best option here would be to contact Divi support and ask if it is possible to make an archive page template with the builder that will have a common query across all of the pages, and behave like default posts category pages that are using an archive.php template.

So then you can place the filter on any category pages with the common query and it’ll work like it should.

Best Regards,
- Victor

Well, the plugin is not compatible with Divi’s default working mode, this is important and should be highlighted in the plugin’s information. Divi is one of the main website builders in the world right now and I think it’s relevant information.

Hi fmanez

It is not the compatibility issue here, the only issue that occurs in this case is that it is not possible to use a single filter set if each page has unique queries. In such cases, it will be necessary to create a separate filter set for each of the archive pages.

However, the plugin is constantly updating, and this issue may be resolved in future updates as well.

Best Regards,
- Victor

Plugin could not be activated because it triggered a fatal error. (multisite license)

I have a clean install of Wordpress 6.6.2 // WooCommerce 9.3.2 // Porto Theme and when I want to activate the plugin I get the following message “Plugin could not be activated because it triggered a fatal error”. The same thing happens when I switch to twenty-twenty four theme.

Hi pablo80pablo

We just want to confirm, everything is working correctly now, right?

Best Regards,
- Victor

Correct. You can close this ticket.

Thank you for your confirmation. Have an amazing day!

Best Regards,
- Victor

Is there a way to have a “pre-filter” applied to a filter set that doesn’t get displayed to the user?

Hi HumanCode

Thank you for your interest in the Filter Everything plugin.

Only by the URL. When you choose the filter terms you can see that the URL will change. Only like that, you can get the predefined filters.

Best Regards,
- Victor

I have selected ‘Do not display opening widgets buttons automatically. I will insert them myself via shortcodes.’ I have added a shortcode which works. But this makes the rest of the filters on the page disappear which use normal shortcodes.

No, it is not possible to have only one as a pop-up and the second one as a simple filter without this option on the same page.

What you can do, is not use the pop-up widget, and simply add your own pop-up modal window where you will place the simple filter looks. This will help you to achieve the needed results.

Best Regards,
- Victor

Frustratingly, I can’t add two of the same widgets and hide one for mobile and hide the other for desktop. I think it counts it as two of the same filter sets and only lets me display one, even if its hidden for different devices. Is that the case? If so I’m not sure how I go about creating a pop up for mobile only and showing it normally for desktop

Under the perfect conditions, you would need to use the same filter widget for desktop and mobile. So when it goes CSS media query 768 => instead of opened view like it is on desktop it applies styles to make it like a pop-up modal window.

Best Regards,
- Victor

Hi I can’t change anything with filter: Error: you can not update settings because the Filter Everything Pro plugin is locked. Please, enter your license key to unlock it.

Why ?

Can you please specify inside what archive you find the license key? It is only available following the instructions that we send you, after logging in with the account on which you purchased it. Preferably in incognito browser mode. Usually, the license key ends with the == symbols.

The purchase code and the license key are two different things.

Best Regards,
- Victor

Thanks, resolved via your instruction.

We are glad to hear that the issue was resolved.

Best Regards,
- Victor

Hi,

Thank you for your response. The illustration was handy. I see i can create a new filter but then they say that the taxonomy is already used.

Does this imply i have to build a whole new taxonomy and entry the attributes again? Or are there shortcuts?

Kind regards,

Remon

Hi Remon

If you already have a filter from this product attribute, then yes, you need to create either another separate attribute or a custom field.

You cannot create multiple filters from one taxonomy, product attribute, or custom field.

Please note, that you can send the message in the same comments thread that you created, in order to remove the confusion and we could see the whole issue story without trying to find it in multiple different comments.

Best Regards,
- Victor

Dear Stepasyuk, Thank you for your work. I have the filter up and running. Now, i am trying to do a numeric filter.

The steps I took:

- I had attributes like weight in kg and max payload kg in my Product section at WooCommerce

- I have (in the same product section) selected that its name/numeric

- I can’t select numeric filter when i am making the filter in Filter everything

- the Result is i can only select other filters (radio buttons etc) i have to admit that i find strange they show the options in no chronical order while they are ascending in the menu of Product – ) attritubes so that is strange.

What can I do to have a great range/numeric filter when applying the filter in the side-bar?

Kind regards,

Remon de Groot / Aspectra

Hi remon16

In order to create a range slider filter you can do it with the Custom field numeric or the Taxonomy numeric. If your product attribute contains only numerical values like 1, 10, and 10.05 it will create a range slider without any issues. But if it contains letters like 10kg/10cm/10.10.10/ it will already be a string value so it won’t work like a range slider.

Also, you can check the custom fields from WooCommerce on the right side when editing the filter set – https://prnt.sc/QjFRjBK8ZnZB

And this is the taxonomy numeric – https://prnt.sc/Bg24ET9t5uv3

Best Regards,
- Victor

Hi

Sort by Product Price in either direction is not working. Tested with only essential plugins, basic theme. The site uses a lot of attributes in WooCommerce.

(PS. Searching comments in envato is not useful at the moment, it seems to be too broad)

Hi MartinNorton

You need to create a sorting option in the sorting widget using the meta key numeric and the meta key _price in order to make it work and order your products by the price.

Best Regards,
- Victor

Thanks – works. Will Order by ‘Product sales number’ work to provide Best Selling Products, or will I need a numeric meta key for that also?

It depends, not sure on which exactly, or it was made for backward compatibility (as it was added before us), but you need to test that one. You can find the default custom fields for Woo when editing the filter set on the right side – https://prnt.sc/nd4zJ7fDLVlQ

Best Regards,
- Victor

I need help again. I want to set a standard filter on an attribute. I want to call up a main category with all my products and then select the attribute connection – “With WiFi”. When I now call up /my-shop-with-wlan I want the filter “With WiFi” to be selected in the sidebar filter. I want to be able to deselect this and then see ALL products in my main category. THANK YOU

We will send this to the development team. Perhaps they will make something like this possible in future updates.

Best Regards,
- Victor

Thanks. Is there a hook for selecting the filter? I can create the category but I can’t select the attributes using a plugin code so that the appropriate filter is clicked/selected.

No, there are no hooks for that, as it should work like a redirection functionality.

Best Regards,
- Victor

I just purchased the pro version and have a filter set working on a custom template pulling in ACF custom fields. Perfect! I even got search modules to search by ACF custom fields by changing my child theme’s function.php file.

However, Filter Everything’s search does not pull in the ACF custom field – even after the functions.php change. How can I get your built in search to pull in ACF custom fields?

Thank you

Hi mattbatt

Thank you for choosing Filter Everything PRO.

The search field uses the default WordPress search algorithms.

If you want to extend it with the new entities, you will need to write custom code that will extend this logic with the necessary conditions.

For this, you can use the WP hook ”posts_search” to apply the required conditions – https://developer.wordpress.org/reference/hooks/posts_search/ For the needed post type.

Also, you can check the plugin code and check how the SKU search was added.

Best Regards,
- Victor

Ok thank you – I’m still new to WP. What I did get working is a main search module, so maybe I’ll have that outside of Filter Everything – like in the menu

Hi mattbatt

Everything depends on the case and which option will fit better for it.

Best Regards,
- Victor

Hi I’m having an issue with Terms not showing under my main woocommerce product categories when selecting to always hide empty terms. Example: https://japamalabeads.com/shop/full-malas/ does not show “5th Chakra” but there are items in this category and term as shown here: https://japamalabeads.com/shop/full-malas/chakra-5th-vissudha/

I tried deleting the post type filter and re adding it but the issue continues. Is this a bug or am I doing something wrong?

Hi afungusboy

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

Best Regards,
- Victor

Ok I messaged you with the info.

Hi afungusboy

We have checked the site, and the issue is that your archive page template uses unique queries on each of the pages, instead of the main query.

This will require a separate filter set for each category page. Or you need to change the archive template so it will use the main query in order to have one filter set place on Any category page with the common query.

Best Regards,
- Victor

Hey, on my page I want to have multiple filters for my Wordpress posts:

Difficulty as the toggleable heading with the following filters - Easy - Medium - Hard

Type of game as the toggleable heading with the following filters - Card Game - Dice Game - Other

I’ve managed to get these two working^ however I can’t add any more filters. This is why I tried creating and adding a different filter set for the page. However when doing this the prefix for the URL is greyed out and can’t be changed due to the above filters. Please tell me how I can have 4-6 different filters on a page in the same column.

I’m using Elementor Pro on Wordpress. Currently I’ve set the difficulties as tags and the type of game as category for the posts.

Hi overwrought_library831

Thank you for choosing Filter Everything PRO.

You are facing the issue when from one entity you want to create multiple filters, which is not possible to work normally.

If you need to have 10 separate filters in one filter set, you either need to have 10 separate taxonomies, 10 separate product attributes, or 10 separate custom fields. Or mixed 4 taxonomies, 6 custom fields, etc. The idea is that they have to be different entities.

You can use the ACF plugin for custom fields – https://wordpress.org/plugins/advanced-custom-fields/ and the Custom Post Type UI for custom taxonomies – https://wordpress.org/plugins/custom-post-type-ui/

Best Regards,
- Victor

Hello team, We were able to allow login for you to access our backend. Please check our site and see why we cannot unlock our purchased license so we can continue development. We just sent the login info again. It should work now. Thank you

Hi ecomreserve

The license was activated on the site. Please make sure you don’t delete the plugin so the license won’t disappear. As you have some configuration that is blocking connection with the license server.

Best Regards,
- Victor

Hi, I’ve been implementing Filter Everything Pro with the Enfold theme to filter through custom post types (build with ACF) with custom taxonomy (also build with ACF) on pages that have only 1 query (with a ‘Blog post’ element from Enfold). The weird thing is : the filters work when I4m testing the page and logged in as an admin. When I’m not logged in, the filters do not work. Any idea what might be causing this ? Thanks !

Let us know if you were able to find the plugins that are causing this behavior.

Best Regards,
- Victor

Hi, Sorry to come back to you so late. I couldn’t find any plugin that was responsible for the behaviour ; it was still happening even after deactivating everything but ACF, Enfold and Filter Everything, emptying every cache, etc. I ended up making up a quick patch-up job with jQuery (only possible because the queries are not paginated), so the filters kinda work. But it seems there is some caching issue at play here ? I also discovered that the criteria was not being connected or not, because even when connected as an editor, the issue was still there ; it was only when I was connected as an admin that things were working – maybe it was tied to the possibility of modifying the filters ?

Do with that information what you will, but it might be worth investigating…

Best

Hi JaimBateman

Do you think you can set up a staging site with such behavior so we can change absolutely everything there without worrying about any data? In order to get to the roots of the issue.

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