Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,681 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8965 comments found.

hi, i have a number of pages I’ve set up with filters. Everything is working great, however the order of the attributes are all over the place. For example I have plants in various pot sizes… and instead of being 10cm, 11cm, 12cm, 13cm etc… It’s random like 14cm, 11cm, 10cm, 12cm etc.

It’s only on the filter sets it’s random, within the product page (woocommerce) it’s correct and n the order I’ve set it.

How can I make sure it’s the same with your plugin and how it displays on the live filter sets?

Hi brael,

You can choose the needed sorting order from a filter set settings for a needed filter – https://prnt.sc/PKONKI3P1P1Q

In general, there is no support for accounts whose support period has expired following the support policy

But we can help you later after all requests from accounts with valid support periods are processed. It may take some time – days or weeks.

If you want to get it faster, please extend your support period and this request will be processed in the first queue for supported accounts.

Best Regards,
- Victor

Hi i buy your plugin but i have problems with the configuration, the page is https://rolstore.com.co/ i have five categories and create five filters set and put the category but when i use the plugin doesn’t work, i try everything i read in the documentation but can’t resolve :/ i hope you can help me.

Hi Feliperaja97,

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

Best Regards,
- Victor

Hi i make a manually backup and send you the access

Hi Feliperaja97,

We have checked the site and you have some URL prefix issues, You should not use the same URL prefixes as attribute or categories slugs, they all should be unique. In order to proceed and fix it all more likely that all of the filters will be lost. When you are ready for it, let us know so we can start fixing it.

Best Regards,
- Victor

Hello, I have landing pages: “buy product in the city”, where the city is the selected filter value. I would like to generate links like: Buy a BRAND product in the current CITY (I want to list all brands available for a given city). For correct generation, it is important for me to know which city is selected using the filter. Is there some way to get the value of the selected filter by attribute pa_city?

Hi Igor_Shyshka,

You can use this function:

/**
 * @return array|false all selected filters or false
 */
flrt_selected_filter_terms();

Best Regards,
- Victor

Filter Not properly work on the Category page. Am adding a filter in custom fields. It’s not showing properly.

https://seocourseinchennai.online/category/gas-detection-2/calibrators-gas-detection-2/ This is one of the sample category page. Here am adding 2 custom field filters brand and industry. It shows brand only Also in brand value it’s shows only one value.

Can we connect to Google Meet? We need to sort this out ASAP.

Hi suchi5,

Thank you for choosing Filter Everything PRO.

Unfortunately, we are not using Google Meet to provide support. If you choose in the filter set set hide filter and hide empty terms If on the page there are no posts with those filter terms it will simply hide it all. Please check those settings in your filter set settings – https://prnt.sc/-F9FH4-HfIxm

Also, make sure you are using the correct WP_Query in the “And what to filter?” dropdown inside the filter set settings.

And what exactly do you need to filter on the presented category page? There are no visible posts to be filtered.

Best Regards,
- Victor

Hello, the popup filter is displayed on all pages on mobile. How can display only on shop pages? Thank you

https://dev.nordcaravan.it/

Hi Funkwarrior,

You need to turn on this option in the Filters -> Settings -> Experimental – https://prnt.sc/iX-Lgz-5RiDl and use the shortcode [fe_open_button] for the filter button on the needed pages. More about shortcodes can be read here – https://filtereverything.pro/resources/shortcodes/

Best Regards,
- Victor

Thank you Victor, sorry I must have read docs carefully before asking support! Have a nice day!

Hi,

Loving the plugin but just wondering how I am able to customise the font style, size and colour on the search ?

Thanks

I have created a custom post type and added the filter everything to the sidebar widget. I am looking to style that so that I can change font type and colour but cant see any options for this. Hope that makes sense.

thanls alan

You can use brwoser tools and inspect the needed elemnt and change their styles. For example like the filter title – https://prnt.sc/7HQMBZjIqciE and we add the needed CSS in the Filters -> Settings -> Experimental -> Custom CSS:

.wpc-filter-title {
    color: red;
    font-size: 40px;
}

Best Regards,
- Victor

many thanks I will give this a try

Hi, love your plugin its much faster then another one which we had previously. I have only one problem, I have a field at category shoes (Schuhgröße US -> shoe size) if you select on value it will not be filtered, other ones work. Could you please help me with this? Thanks

Hi deepcoding,

Thank you for choosing Filter Everything PRO.

Please send the link to the page with the issue so we can check it.

Best Regards,
- Victor

I am seeing an Uncaught Type error on pages with the filter in the sidebar. It rapidly counts up as you scroll up and down the page. Can you help me eliminate it please.

https://app.screencast.com/xELqNB5fajBaT

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

Best Regards,
- Victor

Done

Hi partnersrrc,

Thank you for the credentials. The issue you are facing is not connected to our plugin at all. We have deactivated the plugin and those errors still appearing, They are related to this code:

const screen_size = window.innerWidth;

if (screen_size < 900) {
    var filter_close = document.createElement("img");
    filter_close.src = "http://petsware.co.uk/wp-content/uploads/2022/01/x-mark-24.png";

    const appendChildren = document.querySelector('.inside-left-sidebar #block-14');

    appendChildren.appendChild(filter_close);

    const mob_fil = document.querySelector('.cstm_mob_filter');

    mob_fil.onclick = function() {

        document.querySelector('.is-left-sidebar').classList.add("cstm_filter_active");

    }

    const trigger_filter_close = document.querySelector('.inside-left-sidebar #block-14 img');

    trigger_filter_close.onclick = function() {

        document.querySelector('.is-left-sidebar').classList.remove("cstm_filter_active");

    }

}

More likely this is some type of custom code, that cannot find some element by its class/tag.

Best Regards,
- Victor

Do you have documentation for how to implement this on a fully custom page? I added the shortcode via PHP on my page and it’s showing the filter set in the sidebar but it shows zero items in each category. The rest of the page is showing all the custom posts. Thanks!

Hi csavinell1,

Thank you for choosing Filter Everything PRO.

We would recommend the quick start guide – https://filtereverything.pro/resources/quickstart/ Also, please make sure you choose the correct WP_Query from the “And what to filter?” dropdown in the filter set settings.

Best Regards,
- Victor

HI,

I just bought the plugin, unfortunately I note that I had fewer problems with the free version, but hope we can solve them.

Essentially, I have 3 problems that I can’t resolve:

1. I tried to filter categories in the exact same way I used in the free version, but unfortunately this filter creates a critacal error on the site by calling up the Wordpress error page. The only thing I noticed is that the Query selection disappears, in the sense that as soon as I press the refresh button from “Product query. Main Query” it switches to “Select Query”.

2. The price, I followed the various tutorials on YouTube and the instructions you gave in the comments, I managed to make it works but not together with other filters, even with multiple filters.

3. By inserting further custom filters (custom attributes added on my products that appear in the drop-down menu) problem seams to be the same, it is not possible to select the correct Query.

Thanks in advance for your help, if you need any other info please let me know.

Nick

Ok, thank you for your feedback. I’ve just sent them through private message.

Thank you for the provided access.

We have enabled the debug logs to find all of the errors. The fatal error that appears is that there is not enough PHP memory:

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes)

Currently, it is set to 512M we would recommend you contact hosting support to increase this PHP memory up to 1024M. In PHP, there is a directive that increases memory, but it does not have a higher priority than the system directive. Therefore, hosting support is needed here.

Best Regards,
- Victor

Thanks for the tip. I’ve just contacted hosting support, I will let you now soon.

Hello,

This is a PreSales Question!

Deploy product filters on click, on mobile view

This is our problem:

We are using Yootheme PRO dynamic content – grid module – to display products into product categories, and on mobile view all filters are opened by default so you have to scroll down alot to see the products:

https://ibb.co/fYXVcY1 https://ibb.co/yPChGVF https://sigmapack.weblikepro.ro/categorie/shop/?cmp_bypass=clona

Is it possible to deploy product filters on click, on mobile view?

Example:

https://ibb.co/yXwBWpD https://ibb.co/zHnJkYW https://akheronparts.ro/shop/ ------------

Thanks!

Hello Victor. Please tell us what z-index/css should we use so that the mobile modal filters will display above WhatsApp icon >> https://ibb.co/whCGYQD . URL: https://sigmapack.weblikepro.ro/categorie/shop/?cmp_bypass=clona . Thanks!

Hi weblike,

We would recommend setting z-index for WhatsApp and cart icons to 10 like we did here – https://prnt.sc/-Gex9P0U7wiv and this is the result – https://prnt.sc/OEBvCOsoaeuS

Best Regards,
- Victor

It works. Thanks!

3 issues: https://www.loom.com/share/4ce90f0f37bf4b8e9b72dd4a99ba6fbc

1. Why is there a gap on mobile and how do I remove?

2. When I click a filter on mobile, the results update, however I want to select a few filters and then press the filter button.

3. An overlay appears and then the page is unresponsive unless I click it and then the overlay removes.

Please see video

Thanks

Hi customlogoshop1,

Unfortunately, the numeration will be as many products as you have, and if you use an option for variation or not, you will still get the same number of products. Because you do not display variation products as one product you display all variations separately so the option for variations is not working to provide the correct number. That’s why there is an incorrect amount of products.

Best Regards,
- Victor

Any way to customise it to display number of variations do you think? Just creates confusion on the website. Other leading brands seem to solve this issue such as clothing websites etc

Well, the sites that we had experience with, they all show variation products as one product, only when you click on it you can choose any variation. Or they simply use single products if they want to display everything correctly. That’s why they have the correct amount. But in your case, hard to tell, We can make a request to the dev team and see what information they can provide on this matter.

Best Regards,
- Victor

The CSS of the chips [fe_chips] look bad when I put the shortcode in the FSE theme templates… But if I use it directly the shortcode on a page looks fine. Is it tested and fully compatible with FSE theme templates? Functionally, it works fine, but the CSS looks bad.

https://d.pr/i/CtcCJm
I have been trying everything, and in this link that I show you, I only have two active plug-ins, ACF PRO and your filter plug-in, nothing more, so that there can be no conflict with anything. https://staging7.mejorviajando.com/filtro/continente-africa-or-america/

I have tried it with the FSE Greenshift theme, with the Twenty Twenty-Three theme and now I have it with the Twenty Twenty-Two theme. And it looks exactly the same, from what I understood that it was a problem with your plugin…

In fact, searching through comments I already saw a user two months ago richard_repetebox who also commented the same thing about the aspect of FSE issues… (Furthermore, the chips are seen vertically…)

The request has been duly noted and added to our list of issues to check. Our development team has been notified and we will keep you informed of any updates as soon as we receive them. Thank you for bringing this to our attention. We appreciate your patience and understanding in this matter.

Best Regards,
- Victor

Perfect, thank you and I’m looking forward to it.

Is there a way to add a filter through a custom property made in a woocommerce product?

Hi hakank1,

Thank you for choosing Filter Everything PRO.

“Add a filter through a custom property made in a WooCommerce product”

Can you please explain what you mean by that? Or even better send a screenshot of that “custom property” and in which way you implemented it. So we understand more clearly and provide some information on it.

Best Regards,
- Victor

Hello,

I’ve run into two issues.

Issue One

I have product filters set up via ACF fields (checkbox: Filter 1, Filter 2 (XYZ), Filter 3, and so on). My products are all checked appropriately, but for some filters (ex. Filter 2 (XYZ)) no products show up.

Checking the individual product pages, the appropriate fields are checked (ex. Filter 2 (XYZ)), but the products still do not display when filtering by Filter 2 (XYZ).

Issue Two

I configured a separate unique filter (Filter 2.1) to test if the products in question would appear under that filter. Products now show for Filter 2.1 correctly. However, now Filter 2 (XYZ) and Filter 2.1 both appear as filterable options, despite none of my products having Filter 2 (XYZ) checked anymore.

Potential Pattern?

One final note. I think I see a pattern in which filters return zero products. The defunct filters may all have parentheticals—i.e. Filter 2 (XYZ) returns no products, but Filter 2.1 returns the correct products. This might be at the heart of my issue and may need to be considered in future updates.

I would appreciate, however, a solution to Issue Two — how do I remove old, now-unused filters from my list of filterable options? I have removed them from ACF, ensured the products using these old filters no longer list them as options on their individual pages, and I’ve configured the Filter Sets to “Always Hide” Empty Terms.

Thank you.

Hi brulincleaningsolutions,

Thank you for choosing Filter Everything PRO.

Issue One

Can have a couple of reasons: 1) The names you are using are incorrect, better use (value : property) in such cases in ACF. 2) You didn’t apply it to any posts. 3) URL prefix conflict try to change it from the Filters -> Settings -> URL Prefixes.

Issue Two

When you are changing names in ACF custom fields (their meta key) delete them and so on, ACF does not delete them from the database, and it does not change meta keys in the database as well. The reason why everything is working if you create a new custom field is because it has a unique meta key that was not already in use. You need to either clear the database from unused custom fields or create a new custom field with a unique meta key.

Here is an example: 1) Create an ACF field – https://prnt.sc/AvWNTdWZ1yjp 2) Apply it to some posts and check the database – https://prnt.sc/Qkkg_9V8zPSu 3) Delete ACF field – https://prnt.sc/2G2Izxy5E9dl 4) Check the database again – https://prnt.sc/AjvuLvqUtXga

Those are all of the issues that are happening if not working with ACF carefully. Our plugin takes data from the database, so that’s why you might see some weird data that you already “deleted” but in reality, the database has all of the “deleted” data.

Also, what is the meaning of filter 2(XYZ) filter 2.1? Send a link to the page with issues and screenshots of how you create those filters 2 and 2.1 and so on.

You can remove it manually from a database or use any plugin to clean them.

Best Regards,
- Victor

Hi there. I’m currently using the Uncode theme and encountering some issues with product filtering on a custom page. Specifically, the logic using the OR in the filters doesn’t seem to work correctly, and after clicking on twice, the filtering becomes unresponsive. The only way to restore filter functionality is by resetting them using from chips module.

Interestingly, I’ve used this same theme and your plugin for another client, and it worked good.

I’ve also come across a workaround in the comments section regarding Isotope layout, which did help somewhat, but there still seems to be an issue.

Could you please reach out to me via email privately so that I can provide you with the necessary credentials to access the website? I believe this will make it easier for you to diagnose and address the problem.

Looking forward to your assistance.

Here is what you can do, add to your wp-config.php file next code:

define( 'FLRT_QUERY_TERMS_SEPARATOR', ':' );

It will change the separator in the plugin from ; to : and check if everything will start working correctly.

Best Regards,
- Victor

Hello Victor. Thank you for that. After this fix everything seems to work perfect. Is there any solution to prevent such issues without having to rely on support each time? I’m planning to buy more licenses for next projects.

Many Thanks.

Hi simon_skybox,

Well, as we mentioned this is a setting in the server or in WP that the query separator is using ; but it should not use it, so you need to find out how to change it. This is a very rare issue and actually, you are the second person with such an issue of all time.

Best Regards,
- Victor

Hello Viktor, i have a second question. Example: When im on my Shop site https://modernbedacht.de/produkt-kategorie/ueberdachung and set some Filters. It shows my Filtered Products. When I go to the bottom of that page and click on the Button “Load more Products” is Loads more products but none that I filtered for. What can i do? Thanks!

Hi ProdbyDaan,

Currently, not all “Load More” functionality is supported by the plugin. Some of the plugins for example – https://wordpress.org/plugins/load-more-products-for-woocommerce/ already have this compatibility. We are continuously working to expand the list of supported plugins that have “Load More” (Infinite Scroll) and other functionality to be 100% compatible.

So as a workaround, you can use this plugin, and everything will work correctly.

Best Regards,
- Victor

Do I have to set up something special in the Plugin, installed it, default settings, but i doesnt work too.

Hello Victor, We utilise this plugin on our store with 30,000 products, 2,500 category taxonomies and various attributes. We are currently able to use a filter powered by attributes alone, but if we enable a Product Category powered filter, and use the ‘include’ functionality to only show 15 product categories in the filter, it breaks our VPS server. When checking the transaction & SQL logs, we can see the SEO Rules functionality and filtering is still calling all 2,500 taxonomies and trying to build indexes for them all alongside creating huge SQL queries which max’s the CPU (and bring the site down).

Do you have any performance improvements coming out soon for the plugin?

Currently we’re being forced to abandon the integration as we cannot keep the server online… If you’re interested I’d be happy to share more information including screenshots and logs and the queries that slow down everything.

Best Regards, Ben

Hello Ben

Thank you for using the Filter Everything PRO.

Please, provide me with credentials to your /wp-admin in accordance with this document and with any evidences that our plugin uses too hude SQL-queries or stores too big data.

Because all SQL-queries are optimized and the plugin uses internal cache to make its work as lightweight as it possible.

Thank you. Regards.
- Andrii.

Hi, the filter works perfect, but how do I remove the   added to the label?

  • <input type=”radio” data-wpc-link=”/themes/theme-documentary/” name=”product_tag” id=”wpc-radio-taxonomy-product_tag-75”> <label for=”wpc-radio-taxonomy-product_tag-75”>Documentary  </label>
  • Thank you

    Hi thomas6791,

    Thank you for choosing Filter Everything PRO.

    Can you please send any screenshots and links to the page with the issue so we can check it? The description is a bit confusing.

    Best Regards,
    - Victor

    Hi, I would like to ask for support. I currently trying to sort the terms of a filter in a very specific order that is not ABC. How do I adjust that? I tried the Default and Term ID with no success. Can you help?

    Hi thomashubscher5,

    Thank you for choosing Filter Everything PRO.

    There is the possibility to use the ‘wpc_terms_before_display’ hook to sort terms to your needs via code modifications. More information can be found here – https://filtereverything.pro/resources/hooks/#terms-before-display-hook

    Here is an example of the code:

    add_filter('wpc_terms_before_display', 'wpc_sort_terms_as_needed', 10, 2);
    function wpc_sort_terms_as_needed($terms, $filter){
        // pa_color - is desired taxonomy
        if ($filter['e_name'] === 'pa_color') {
            // Define the custom sorting order
            $customOrder = array(
                'red',
                'blue',
                'green',
            'purple'
            );
    
            // Create an associative array to store term objects
            $termMap = array();
    
            // Populate the term map
            foreach ($terms as $term) {
                $termMap[$term->slug] = $term;
            }
    
            // Sort the terms based on the custom order
            $sortedTerms = array();
            foreach ($customOrder as $slug) {
                if (isset($termMap[$slug])) {
                    $sortedTerms[] = $termMap[$slug];
                    unset($termMap[$slug]);
                }
            }
    
            // Add any remaining terms to the sorted array
            foreach ($termMap as $term) {
                $sortedTerms[] = $term;
            }
    
            return $sortedTerms;
        }
    
        return $terms;
    }
    

    and this is the results – https://prnt.sc/pYxJUGe6tXVM

    Best Regards,
    - Victor

    Hi Victor, I don’t have much experience with programing, how do I add this hook?

    Hi thomashubscher5,

    You write the code in the functions.php file of your theme.

    If you do not have the required programming skills, we would recommend hiring a developer using a platform like Upwork to do it for you.

    Please note, that support is focused on assisting with the usage of existing features, troubleshooting any issues related to our plugin, and providing guidance on it. While we are more than happy to provide instructions, and examples on how to implement custom functionality, we are unable to write custom code or create bespoke solutions for individual users. The custom coding falls outside the scope of the support policy.

    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