Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,686 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8967 comments found.

Hi, I’ve migrated the site to the live URL and made some layout adjustments. However, the filter isn’t working anymore.

What I need is for the filtering to only affect the ‘Browse AI Tools’ section. I’ve sent you the login credentials via DM. Let me know if you need anything else.

Thanks!

FE_support Author Team

Hi darrel03

All done! You just had to choose the correct query in the “And what to filter” section: https://prnt.sc/JN6zuoaC6Jx5

Now everything is working.

In general, the “And what to filter” dropdown displays all queries for the selected post type on the page that you chose in the “Where to filter”.

So if you have three queries, it will list all three. Only one of them is responsible for the posts you want to filter. By selecting the correct query, you are telling the filter which posts on the page should be filtered.

Best Regards,
Victor

Ah got it, thanks!

Testing to see if it can replace current filter. We have woo products with colors in categories instead of attributes. Filter has attributes but can I add category as filter as well and set an image or color to it?

FE_support Author Team

Hi marnixluieuil

Thank you for your interest in the Filter Everything plugin.

Yes, you can create color swatches for taxonomy filters. However, please note that you can create only one filter per taxonomy. So if you have multiple different categories, like size, color, etc., under the same taxonomy (e.g., “Product Categories”), you cannot create separate filters for color and size; it will be combined into one single filter.

However, you can add a custom taxonomy to your post type and use it exclusively for colors. This way, you can create separate filters based on that custom taxonomy.

Best Regards,
Victor

Hello, I would like to ask if it is possible to sort terms in the filter according to the Czech alphabet (currently, words starting with letters with diacritics are sorted at the end of the international alphabet). Second question: it seems that the plugin prevents us from displaying categories (one of the filters is categories), is there a way to set it so that categories can be set without disrupting the filter function? Thank you for your support!

FE_support Author Team

Hi jandovalena

So first thing that you need to do is change the PHP locale settings for the correct language that you need, and then secondly in the \filter-everything-pro\src\Entities\EntityManager.php on line 1004 there will be a next function:

    public static function compareAsc( $key ){

        return function ($a, $b) use ($key) {
            $value_1 = isset( $a->$key ) ? strtolower($a->$key) : 0;
            $value_2 = isset( $b->$key ) ? strtolower($b->$key) : 0;

            if ($value_1 == $value_2) {
                return 0;
 }

            return ($value_1 > $value_2) ? +1 : -1;
 };
 }

You need to replace it with this function:

public static function compareAsc( $key ){

    return function ($a, $b) use ($key) {

        $value_1 = isset( $a->$key ) ? mb_strtolower($a->$key) : 0;
        $value_2 = isset( $b->$key ) ? mb_strtolower($b->$key) : 0;

        $comparison = strcoll($value_1, $value_2);

        if ($comparison == 0) {
            return 0;
        }

        return ($comparison > 0) ? +1 : -1;
    };
}

Please note: try this first on a staging environment before applying it to your live site, as this is not an official plugin functionality yet, it’s still in testing.

Best Regards,
Victor

pdg87

pdg87 Purchased

Hi there, I have been using the PRO version of this plugin for a few months and it has been good. However I have experience an issue with nested/complex tax_queries where filtering will not work.

I am trying to get posts by a custom `brand_name` taxonomy AND category OR posts tagged with a certain tag, whilst excluding posts tagged with another tag. However when I try to add the post_tag IN the query, it gets the correct results on inital load, but the results do not correctly update. If I remove this part and leave the `category` and `brand_name` tax_query it works. I’ve tried so many variations but it just won’t work :/

this is my query, although I have tried many varations:
$brandArgs = array(
                    'post_type' => 'products',
                    'post_status' => 'publish',
                    'posts_per_page' => 60,
                    'tag__not_in' => [21529],
                    'paged' => $paged,
                    'tax_query' => array(
                        'relation' => 'OR',
                        array(
                            'relation' => 'AND',
                            array(
                                'taxonomy' => 'product_brand',
                                'field' => 'slug',
                                'terms'     => $brandNameTerms,
                                'operator' => 'IN'
                            ),
                            array(
                                'taxonomy' => 'category',
                                'field' => 'name',
                                'terms'     => $catNameTerms,
                                'operator' => 'IN'
                            ),
                        ),
                        array(
                            'taxonomy' => 'post_tag',
                            'field' => 'slug',
                            'terms'     => [$post_slug],
                            'operator' => 'IN'
                        ),
                    ),
                    'meta_query' => array(
                        array(
                            'key'     => 'out_of_stock',
                            'value'   => 1,
                            'compare' => '!=',
                        )
                    ),
                );

FE_support Author Team

Hi pdg87

Thank you for choosing Filter Everything PRO.

Unfortunately, we do not debug or provide custom code. Anything involving custom (themes, plugins, queries) is outside the scope of our support policy.

The plugin does work with custom queries, for example, those created via official page builders, premium themes/plugins, or even custom-written ones. However, we do not offer support for custom-written queries. Support is only provided for official plugins, premium themes, and page builders, not for custom-written code.

Best Regards,
Victor

pdg87

pdg87 Purchased

Okay, that’s a real shame. It is not exactly a complicated query, I stripped the query right back and it still does not work. It shows the correct posts initially and all counters are showing correct number of posts even when filtering, but for the posts that have the tag I am looking for, they show all posts from the brand/category when selecting the category/brand the tagged post is in.

FE_support Author Team

Hi pdg87

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

And include the link to the page with the issue so we can check it directly, along with step-by-step instructions on how to reproduce the incorrect counters on that page.

Best Regards,
Victor

Hi, I’d like to know how I can change the display color of the “Reset Filters” button. Additionally, is it possible to change the position of the buttons?

FE_support Author Team

Hi netonatali

Thank you for choosing Filter Everything PRO.

You can style the elements as you like with the custom CSS. You can place your custom CSS in the Filters > Settings > Experimental > Custom CSS.

Also, you can check the general approach for finding the classes of any element on the page in order to style it correctly: https://wordpress.org/support/topic/colour-change-to-filter-title/

Unfortunately, we do not provide any custom styles, as they are outside the scope of support here on CodeCanyon: https://prnt.sc/dAlZqEmUj3Tk

Best Regards,
Victor

FE_support Author Team

Support covers assistance with the plugin itself, such as how to create filters and make them work on your page where posts are displayed via WP_Query. However, anything outside the plugin’s built-in features, including custom styles or advanced customizations, is beyond the scope of our support policy.

We can only provide general information, such as available hooks, to help you extend the functionality on your own.

Best Regards,
Victor

We changed our filter prefixes. However, when filtering they are using the old prefixes. Why is this happening? You can test the filters here https://www.cfhi.org/program/. I’ve cleared all the cache related to the site. Thanks!

FE_support Author Team

Hi robin465

Currently, there is no such option to do it. All you can do at the moment is use wildcards with the list of required pages where the filters were placed, like:

/shop/*
product-category/cars/*
product-category/clothes/*
...

Best Regards,
Victor

Hey Victor! Is there a way to use query parameters instead of page path filters? So something like ?filter=something instead of /program/myprogram

Hi robin465

You can add this code snippet to disable the permalinks manager in the plugin and use GET parameters instead:

define( 'FLRT_PERMALINKS_ENABLED', false );

After adding the code snippet, you need to go to the filter set and click the Update button.

Please note that generally, there is no support for accounts whose support period has expired, following the support policy.

If you have any further requests, we can help you once we have addressed all requests from accounts with valid support periods. Please note that this process may take some time, possibly days or weeks.

If you want to receive it faster, please extend the support period. We will prioritize processing the request for supported accounts.

Best Regards,
Victor

Sorting not compatible with FSE. plugin is nice but search and sort need FSE blocks urgently, because sometimes you need search outside the main widget for layout, same with sorting needing hacks to be used on currents FSE themes.

FE_support Author Team

Hi WebDesignAgencyLA

The sorting widget can be created only in the widget area and displayed on the page via a widget or shortcode (once it’s created in the widget area).

If your theme does not have a widget area (in the admin dashboard), you can use this code example, which you can place in a code snippets plugin – https://wordpress.org/plugins/code-snippets/ in order to add a widget area to your theme:

function custom_theme_widgets_init() {
    register_sidebar( array(
        'name'          => __( 'Custom Sidebar', 'textdomain' ),
        'id'            => 'custom-sidebar',
        'description'   => __( 'Add widgets here.', 'textdomain' ),
        'before_widget' => '<section id="%1$s" class="widget %2$s">',
        'after_widget'  => '</section>',
        'before_title'  => '<h2 class="widget-title">',
        'after_title'   => '</h2>',
    ) );
}
add_action( 'widgets_init', 'custom_theme_widgets_init' );

And in this widget area, create a sorting widget with all of the parameters, and then display it on the page with the shortcode.

Future updates may introduce new widgets that will work across all theme approaches.

Best Regards,
Victor

I’m using Filter Everything PRO and I would like to allow users to filter products by two separate attributes: Rozmiar EU and Rozmiar UK (shoe sizes).

Currently, when I select a value from the Rozmiar EU filter, all values from the Rozmiar UK filter disappear (and vice versa). However, I want both filters to stay visible and independently filter the product list — even if products only have one of the two attributes.

Importantly:

I do not want products to have both attributes assigned (EU and UK) at the same time.
I also do not want to use combined values like “EU 43 / UK 9” as a single attribute or variation.

Is there a way to configure the plugin (or use a filter hook) to allow filtering Rozmiar EU OR Rozmiar UK, without hiding one filter when the other is used?

Thanks in advance for your help!

Best regards, Marek

FE_support Author Team

Hi Marek

If those are two separate filters representing different size standards, they should not be hidden. Can you please send the link to the page with the filters so we can check this behavior?

Best Regards,
Victor

FE_support Author Team

So here’s how it works: you have two separate filters, and none of the products have overlapping sizes. This means each product uses different attributes, rather than using both on the same product.

When you select a filter term from the first filter, for example, one that shows only 3 products, the remaining filters will only display terms relevant to those 3 products. It cannot ignore the number of displayed products in other filters, as doing so would break the filtering logic.

There are no built-in tools to break the “AND” logic between filters. To achieve something similar with separated functionality, you might need to rewrite part of the plugin code to apply that behavior to the specific filters where it should work.

Best Regards,
Victor

I cant send you PM by https://codecanyon.net/user/fe_support because you not verify my account

FE_support Author Team

Hi marek145

We do not verify anything. If verification is needed, it must be done through the Envato marketplace itself.

Try sending it via email: filtereverythingsprt@gmail.com

Also, please note that you can reply in the same comment to make it less confusing and fragmented, allowing the whole story of the issue to be seen more clearly.

Best Regards,
Victor

FE_support Author Team

The fix has been added to the current version of your plugin. Please do not modify it until the next update, which will include this fix by default.

Best Regards,
Victor

FE_support Author Team

But if, for some reason, you need to modify it, you can go to filter-everything-pro/src/Entities/EntityManager.php on line 937 and instead of this:

$is_rating = ($filter['view'] === 'rating' && $filter['e_name'] === 'product_visibility' ) ? true : false;

Use this one:

$is_rating = (isset($filter['view']) && $filter['view'] === 'rating' && $filter['e_name'] === 'product_visibility' ) ? true : false;

Best Regards,
Victor

Hello,

I’m experiencing a PHP warning on the front page of my WordPress site when using Filter Everything PRO:

Warning: Undefined array key “view” in /home/klient.dhosting.pl/femto/testw.zdrowastopa.eu-jie3/public_html/wp-content/plugins/filter-everything-pro/src/Entities/EntityManager.php on line 937

This appears right after activating the filter. The warning points to an undefined view key in the EntityManager.php file.

Here are my current versions:

Filter Everything PRO: v1.9.1
Shoptimizer Theme: v2.8.13
WooCommerce: v10.0.3
WordPress: v6.8.2

Could you please advise on how to fix this or let me know if a patch is available?

Best regards, Marek Skarzyński testw.zdrowastopa.eu

FE_support Author Team

Hi Marek

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

khalays

khalays Purchased

Hi,

Thanks for your awesome plugin.

I have some issues with a few functions that, once outputted, generate extra <br> tags.

I can see it on the mobile collapse button. eg: `flrt_get_icon_html()` is outputting

<span class=”wpc-icon-html-wrapper”><br> <span class=”wpc-icon-line-1”></span><br> <span class=”wpc-icon-line-2”></span><br> <span class=”wpc-icon-line-3”></span><br> </span>

It is also happening in the search filter chips and the search field.

env: WordPress 6.8.2 – Twenty Twenty Five theme – PHP 8.3

The issue is somewhat known when using shortcodes in the Site editor on a Block Theme: https://github.com/WordPress/gutenberg/issues/56617

As Block themes become increasingly dominant, I would highly recommend creating Gutenberg blocks to render the different parts of the template.

Even if those blocks are only used to render PHP/HTML, it would give more control and would help to future-proof your code.

FE_support Author Team

Hi khalays

At the moment, the fastest way is to use filter wrapper classes, such as for a filter button, chips and filters, and make sure all

<br />
elements that go under those classes as child elements are set to display: none.

In the future, there may be an update that will add a Gutenberg widget for the filters as well.

Best Regards,
Victor

My WordPress site: https://www.smartstartal.com/ Says I no longer have an active license for Filter Everything Pro.

When I use the license key for this purchase code it says the following: “The license key already used for two site”

I have two total website on / in Wordpress with this plugin. But they both have their own unique purchase code and license key. So, I’m not really sure what’s causing the issues. I don’t not have this problem / error with the other site. Hopefully you can help sort this out. Thanks.

Please disregard, I figured this out. Thanks.

FE_support Author Team

Hi joshuabecnel

We are glad to hear that the issue was resolved.

Best Regards,
Victor

Hi,

I want to create a SEO rules for multiple category selection. But as I saw SEO rules are only avaliable for one selection. How can I achieve my goal? THank you very much.

FE_support Author Team

You can create SEO Rules only for one filter term selected in the filter; it’s not possible to create them for two or more terms selected at the same time. The closest workaround is to add a separate custom taxonomy that simulates child categories, this way, you can create a combination using one taxonomy filter alongside another taxonomy filter.

Best Regards,
Victor

can you give an example for that? thank you.

FE_support Author Team

Hi erburaktr

You can use this plugin: https://wordpress.org/plugins/custom-post-type-ui/ to add a custom taxonomy to your post type. Simply leave the “parent categories” in the taxonomy you are using now, and add all the required “child categories” in the custom taxonomy. This way, you’ll have two separate filters, which you can use to create SEO Rules ()one temr from parent filter, and one from child filter). Also, in the filters, there is an option in the “More options” section named “parent filter,” which can help display the second filter only if you choose something in the parent filter.

Best Regards,
Victor

Hi there, I hope you are well. Is it possible to change the URL prefixes to have ?= at the start?

Thanks, Louis

Thank you Victor, I have sent you the login details.

FE_support Author Team

We deactivated the LiteSpeed Cache plugin, as the site was lagging badly with it. We also installed a new Code Snippets plugin and added the code there; now everything is working fine. The Code Snippets plugin that you are using is consistently causing issues for some reason.

Best Regards,
Victor

Thanks so much Victor, that is looking great!

Hello, I would like to add a filter by price where prices are by different ranges (from 60$, 60-120$, 120$+). How to do that? I am using Filter Everything Pro v1.9.0.

FE_support Author Team

Hi perlako

If you have already purchased the PRO version of the plugin, please make the request from the account where the plugin was purchased in order to receive support. Such questions are not related to pre-sale information.

Best Regards,
Victor

Hello and thank you, in advance, for your help.

I originally purchased Filter Everything Pro about 1 year ago. Also, today I purchased another support license, so I’m hoping you can help me out.

We are using FE Pro to create a variety of filters for filtering products by different attributes/terms. When we originally set this up about 1 year ago, everything was working great. However, the filter COUNTS are no longer accurate.

As an example, you can see in the screenshot linked below, we have a term called “Crypton” and it has been assigned to 36 posts. The back-end shows 36 published posts, and our query on the front-end shows 36 results. The counter, however, consistently shows the wrong number (in this case “32”).

https://sandbox.n-form.com/temp/fep/filter_count_does_not_match01.png

Sometimes the counter is off by a few numbers, sometimes it’s off by 40 or 50. We have many filters set up and most of them seem to be showing the wrong count.

I have spent most of the day today trying to troubleshoot this problem, and can’t seem to find the problem. I have cleared the cache, disabled the cache, updated plugins, disabled plugins, deleted filters, created new filters, disabled Ajax, and countless other things.

Do you have any ideas why my counters may be (consistently) returning the wrong count?

I can provide you with access to the site, if you have a method to communicate directly.

Thank you, for your assistance.

FE_support Author Team

So we checked the page with the issue, and it seems the problem lies somewhere in your custom template for that page.

For example, we installed the Code Snippets plugin and added a snippet to display the posts on the page via shortcode. We then created a new test page /fe_test/ and a new test Filter Set for that page, and the counters are displayed correctly there: https://prnt.sc/vQDvbCadOHQJ

Best Regards,
Victor

Thank you for following up.

As a reminder, our problem is that the counters are not reflecting the correct number of posts with a specific term assigned. The filtering works great, it’s just the counters that are problematic.

Upon further inspection today, this appears to be related to the ‘post__in’ parameter when building our WP_Query. If I remove the ‘post__in’ parameter, the counters work great. If I include an array of IDs via ‘post__in’, the counters are are always incorrect.

You mentioned that my error was related to a “custom template”, but ‘post__in’ is native WordPress query structure.

The counters are always incorrect if we use ‘post__in’ like this:

$posts_query = new WP_Query( array( ‘post_status’ => ‘publish’, ‘post_type’ => ‘cpt’, ‘post__in’ => $custom_posts_ids, ‘orderby’ => ‘post__in’ ) );

... but the counters are always correct if we do not use ‘post__in’:

$posts_query = new WP_Query( array( ‘post_status’ => ‘publish’, ‘post_type’ => ‘cpt’ ) );

Do you have any suggestions or examples for using ‘post__in’ in WP_Query while using Filter Everything Pro?

Thank you, in advance. Allen

FE_support Author Team

Hi Allen

We have added those parameters as well: https://prnt.sc/r1gg9djNHl4I and the results on the front test page are correct: https://prnt.sc/cFjEcLBv0u5l

So most likely, there is something else causing the issue. The post__in was just a part of it, or it may be using some type of dynamic values that are pulled too late to modify the counters correctly in the filter.

Best Regards,
Victor

I have Filter Everything Pro and was wondering if it is possible to set up the filters so that the main categories are displayed but are not part of the filter selection. Only all the subcategories will have the checkboxes. So for example:
PARENT 1
☐subcategory-1a
☐subcategory-1b
PARENT 2
☐subcategory-2a
PARENT 3
☐subcategory-3a
☐subcategory-3b
☐subcategory-3c

While it is important for the parent to be displayed for all categories, we just want to filter by the subcategories. Please advise!

FE_support Author Team

Hi MayoIntranet 

Thank you for choosing Filter Everything PRO.

Not out of the box, but you can achieve that by custom coding and template overriding: https://filtereverything.pro/resources/templates-overriding/

Best Regards,
Victor

Hello,

Following an attempt to transfer my website to another domain, the license was deactivated on the coindesprix.ma website, which is the main site.

This license key already used for two sites.

FE_support Author Team

Hi kstechno

You can send your license key via PM: https://codecanyon.net/user/fe_support so we can deactivate it across all of the sites.

Best Regards,
Victor

I sent the credentials for my site but I cannot get past the account verification for the PM – I will forward you the details in the support email address.

FE_support Author Team

Hi kenricstrohm

All done! We just selected the second query in the filter set in the “And what to filter” section and hit the update button. Now it is filtering everything.

Best Regards,
Victor

Thanks, feel foolish that I dd not think of that. Much appreciated.

xamos13

xamos13 Purchased

Hi Victor,

I have two licences and I know my support has ended but I have a qq please.

On a category page e.g. https://cannabisdealsus.com/product-category/cbd/ if I select a merchant i.e. ” Headshop” then the filter shows products from other categories as well. It also changes the number of products in each category on the “Product Ctagories” module on the sidebar.

Your assistance woulod be much appreciated.

Thanks, Theo

FE_support Author Team

Hi Theo

Yeah, nothing weird about this, actually. What’s weird is how your page is pulling those products. For example, if we add any random GET parameter to the page: https://cannabisdealsus.com/product-category/cbd/?aaaa we’ll see all of the products on the page. So this is the root 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