Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,658 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8952 comments found.

Hi

I’m having an issue creating a new rule. When I set the options it says – Error: SEO rule with selected Filters Combination already exists.

I have checked existing rules and there are no rules that match. I have also checked in the database but again, I can’t see anything. there is nothing in the trash either.

There is a rule set up for for a sub sub category of the category I’m trying to set up. Would this make a difference?

Please advise.

Thanks

Hi ebizuk

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

Also, please send the mix that you are trying to create that is showing an error like color + size, etc.

Best Regards,
- Victor

Sent, please let me know if you need anything further.

Thanks

The answer was provided via email as it contained the screen of categories.

Best Regards,
- Victor

I have recently purchased your plugin and would like to filter articles according to custom fields created. The filter works correctly because it tells me for example “1 result found” “6 results found” but does not filter the articles correctly.

The results it finds according to the criteria are not shown. How can I solve this?

Hi andreyellow

Thank you for choosing Filter Everything PRO.

Can you please send a link to the page with the issue so we can check it?

Best Regards,
- Victor

I solved it but wanted to ask … Since your search bar does not work with custom fields, do you have a plugin to recommend that is 100% compatible?

Well, the search uses default WordPress algorithms, so if you want to search only by a certain entity you would need to write a custom code that will extend it with your logic.

For example, you can use the WP ”posts_search” hook to apply the needed configurations – https://developer.wordpress.org/reference/hooks/posts_search/

posts type and needed custom fields. Unfortunately, there is no list like that.

Best Regards,
- Victor

I recently purchased your plugin to implement a basic checkbox filter for categories and tags to selectively display posts. After configuring the plugin according to the instructions, the filter options with checkboxes are displayed correctly on the page. However, no posts are shown beneath the filter options.

When I set the filter, I receive the following message: “No WP Queries matched the post type ‘Post’ found on the page.” The dropdown menu doesn’t show anything. I tried on other pages and sometimes I get 3 options but none of them works.

Could you please assist me in resolving this issue?

Hi davidbrodie1

Thank you for choosing Filter Everything PRO.

To understand the situation correctly, is the page empty? If the page is empty our plugin won’t display any products on it. The filter works on the page where products are already displayed in order to filter them.

Best Regards,
- Victor

Hello, I get redirected everytime I click on a filter to a not found page The requested URL was not found on this server. I’ve read about some perma link plugin issue and added the code provided define( ‘FLRT_PERMALINKS_ENABLED’, false );

Hi golto4

Thank you for choosing Filter Everything PRO.

If this doesn’t solve the issue then you have a URL prefix issue.

Go to the Filters -> Settings -> URL Prefixes and use unique prefixes like this: fe_prod_color, fe_prod_size, fe_prod_brand, and so on.

Please note that we used _ instead of the – it is an important part.

Best Regards,
- Victor

Hello, thank you for replying, something seems to be stuck is there an email I can send a private message?

You can send it here via PM – https://codecanyon.net/user/fe_support

Best Regards,
- Victor

I’m having an issue with the sort high to low, low to high using the product price. It’s not working at all. Alphabetically and reverse work just fine but the price does not. Can I please get some help with this issue?

Hi kemmieg

There could be two issues:

1) In the sorting you should create a sorting option by “Custom field numeric” and if this is the Woo products use meta key _price and then test it.

2) You have changed the default sorting option in the customization for Woo products for something like a price or old to new, etc, which should be set back to the default value in order to not cause any conflicts.

Best Regards,
- Victor

That worked. Thank you

Hi kemmieg

We are glad that your problem was solved.

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

Thank you in advance!

Hello Victor. Another client purchased your plugin and asking me same question after we enabled folding option of filter for him: Why filter which is placed in first line does not overlap the filter in second line? We told him: You have to setup now for each filter a individual z-index via custom CSS. His question was: for every 30 filter?! We say: yes. After he switched to mobile view he find he also have to setup individual z-index for mobile view. And after adding 4 filter sets we asking me: Sorry, now i have to create a excel-list to handle my z-index and to understand which filter will overlap other filters and per filterset and per view. My review: I understand him absolute. You give customer/admin option to open and close filter. But it shoud work like all other filter plugins out of the box. Nobody shoud handle this basics in a paid plugin. And finally: i checked other filter plugins and with all you can say: close filter if new one is opened. This will help to not lose your head in z-index handling with 120 filter in total (4 filter sets + mobile view + desktop view + per filter). We handle now 14 licence and now 5 customer have this issue and nobody of them is happy. I understand: no plugin can handle everything out of the box, but open a box shoud not ends in problems like this. I can not handle all this workload for that basics because we have to solve that via custom css for each theme and style. Do you plan to share solution in next time via your plugin like auto close filter if other one is opened?

Hi Philosoph

As a support team, we write this code, it is demo code, it is not polished and not tested with all of the interactions, more like an example:

function add_filter_toggle_script_to_footer() {
    ?>
    <script>
    document.addEventListener('DOMContentLoaded', function() {
        // Get all filter collapsible sections
        const filterCollapsibles = document.querySelectorAll('.wpc-filter-collapsible');

        filterCollapsibles.forEach(collapsible => {
            const button = collapsible.querySelector('.wpc-filter-header button');
            button.addEventListener('click', function(event) {
                event.stopPropagation(); // Prevent propagation to parent elements

                // Toggle open/close classes
                if (collapsible.classList.contains('wpc-opened')) {
                    collapsible.classList.remove('wpc-opened');
                    collapsible.classList.add('wpc-closed');
                } else {
                    // Close all other collapsibles
                    filterCollapsibles.forEach(otherCollapsible => {
                        if (otherCollapsible !== collapsible) {
                            otherCollapsible.classList.remove('wpc-opened');
                            otherCollapsible.classList.add('wpc-closed');
                        }
                    });

                    // Open clicked collapsible
                    collapsible.classList.add('wpc-opened');
                    collapsible.classList.remove('wpc-closed');
                }
            });
        });

        // Close collapsibles if clicked outside
        document.addEventListener('click', function(event) {
            if (!event.target.closest('.wpc-filter-collapsible')) {
                filterCollapsibles.forEach(collapsible => {
                    collapsible.classList.remove('wpc-opened');
                    collapsible.classList.add('wpc-closed');
                });
            }
        });
    });
    </script>
    <?php
}
add_action('wp_footer', 'add_filter_toggle_script_to_footer');
?>

What it does, is that only one “dropdown” can be opened at a time, and when clicking outside it will close the opened “dropdown”, when you open one and click on another it will close the previously opened one and show the clicked one.

You can place this code in the code snippet plugin or on the functions.php file of the theme.

Best Regards,
- Victor

Thank you. And do you plan to fix that point in one of next updates or it will take longer time?

To be honest, we don’t know, if all goes well, this may be added as an out-of-the-box feature in future updates. It all depends on the development team.

Best Regards,
- Victor

I have send you the private email as per your last comment

Hi niklasl12

This is your issue – https://prnt.sc/qx0LnEZ5h-Sc the German version is absolutely empty. Also, you need to use WordPress editor to translate filter sets – https://prnt.sc/J7BL9AWK285S

You need to fill the German filter set and place it on the needed page, we have added a stage filter on it so you can see how it is working.

Best Regards,
- Victor

Hello, i have added filter everything on the following page: nibirii.com/lineup I use WPML for the website. When i change the frontend to the secondary language (German) the filters do not show, although the widget is visible in the elementor editor. I have made the filters translatable as per your documentation. This is probably, because WPML makes a different page for the translation but the filter set is set for the page of the main language (English). Unfortunately i cannot see the german translation page in the dropdown menu at the “Where to filter?” section, so i cant make a filter set for the german page.

Hi niklasl12

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?

Also, please send a link to the pages in both languages where they should appear.

Best Regards,
- Victor

Hello, I am not able to choose any pages of my website to connect the filter-widget, only “homepage”. What is the problem?

Hi 3w_future

Thank you for choosing Filter Everything PRO.

In the “Where to filter” you can choose “Pages + Name of the page” or you can choose taxonomy, like categories, if you want to apply it to the archive category pages, and so on.

Best Regards,
- Victor

Hi Team, Filter Everything.

We’ve build a site on origineelpakket.nl

This site uses: - Crocoblock - JetEngine - Filter anything pro

On our product page we’ve activated your filters through filter anything pro. The filters are linked to the jetengine listing grid which showcases the products corresponding with the filters. This works perfectly!

However, when clicking the pagination, the filters reset and the listing grid showcases all the products. Could you look into this problem?

I’ve made video explaining the situation: https://www.loom.com/share/3757cc29783b4dee9b74f301fac63434 Page with the problem: https://origineelpakket.nl/winkel/artikel-servetten/

Hi cas25

This is the AJAX pagination issue, we are not sure how it is working, but it doesn’t even add page parameters in the URL. So you can try to use a simple pagination and test it, as this one is simply ignoring the filtered query. If you choose a filter and then click on the next page it will show all of the pages again, but if you refresh the page it will show only 2 pages for example.

Also, you can fix it on the pagination side, there is a hook wpc_filtered_query_end

do_action( 'wpc_filtered_query_end', $wp_query );

Through this hook, you can insert a pagination parameter and the filtered query will show those posts that match a specific pagination page.

Best Regards,
- Victor

Hi there, your plugin looks so easy to set up!

However I get this error on my Elementor Pro archive named “Archive catalogue”. - Aucun ensemble de filtres n’est lié à cette page. Vous pouvez le configurer dans Ensemble de filtres -> « Où filtrer ? » champ. - Here is the link where I get the error : https://catalogue.e-bony.com/?elementor_library=archive-catalogue

Here are 2 screen captures showing my configuration :

https://www.dropbox.com/scl/fi/g68g28lhnm6cy90fy6q30/Capture-d-cran-2024-07-10-10.20.40.png?rlkey=rctu4vjt1lhe1xg7zdq9u9ofb&dl=0 https://www.dropbox.com/scl/fi/anpzv7xlvnp5qyez4lqpo/FireShot-Capture-1213-Modifier-le-jeu-de-filtres-Catalogue-Catalogue-E-Bony-WordPr_-catalogue.e-bony.com.jpg?rlkey=jmo20kudz5zql4ik972f6wte5&dl=0

Thanks for your help!

Elodie

Ok I just sent them to you, thanks!

We have checked the site, and more likely you wanted to apply the filter on the archive page of your products CPT, which we set on – https://catalogue.e-bony.com/catalogue/ you can test it.

Best Regards,
- Victor

Thank you so much Victor, I am new to Elementor archives ;-)

Hi ladies and gents, I am trying to find how to sort the attributes within the dropdown – checkboxes it seems to defautl to alphabetical .

Yeah, unfortunately, there is no such functionality. You can only create a custom field, which will look like grouped options, and apply them on the needed posts that you are filtering, then you can create a filter out of it, and it will work as you need.

Best Regards,
- Victor

THank you . Did you get my message for agencies ? any bulk pricing ? thank you . 100 sites X 40 is a lot

Hi rockynesta

Yes, the answer was provided via Email.

Best Regards,
- Victor

We are trying to update our plugin. 1) our License key is not working on our primary site. 2) are we able to install the software on our stagging site without a second license?

Hi nlccorp

1) Did you try following the instructions from this page – https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key

We’d recommend doing it in the incognito mode.

2) You can activate one license on two sites, as usually it is used like that, one for staging and the second one for prod.

Best Regards,
- Victor

Thanks Victor. It worked on our production account but it’s says two sites are already using our license. How do I find out what URL is using it and how do I release the license to place in n our stage environment?

Hi nlccorp

You can send your license key via PM – https://codecanyon.net/user/fe_support so we can deactivate it across all of the sites, so you can activate it only on the needed ones.

Best Regards,
- Victor

Hello, i bought your plugin and i have one issue. How can i have the logic ” AND ” between to filters ? Each filters are already setup to ” AND”. Please check this blog post archive page : https://comparateur-electromenager.fr/categorie/lave-linges/ I want when we click for exemple on a brand ” Bosch ” then i click on a second filter for exemple 50dB i want result only washmashing who are Bosch brand and 50dB. How to achieve that please ?

is there a way to duplicate a filter set ?

Hi famewayscom

No, unfortunately, this functionality is currently only in the plans. But it will be added in the next updates. We let you know in this comment thread when it will be released.

Best Regards,
- Victor

FE_support Author Team

Hi famewayscom

The update to add the duplication of Filter Sets will be released today in a couple of hours.

Import/export will be released in the next update.

Best Regards,
Victor

Hello, I’m writing you regarding Filter pro I am encountering two problems, 1. The price range not working properly. when i switch to a specific category, the range shows correctly, but if i change the range it fails. 2. two categories or subcategories don’t show up together.

This is the website: www.zooplus.ge

Hi giorgiogamsakhurdia

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

The issue was in the URL prefix “price” seems like it is used by some taxonomy or other plugin and causing a conflict, so we have changed it to the fe_price and everything is working as it should.

Can you please provide more information on the second issue?

Best Regards,
- Victor

So in order to choose multiple options, you need to go to the category filter in the filter set, click “more options” and from there choose the logic “OR” instead of the “AND”

AND logic working in a way that posts should have the color blue and color red on them at the same time, not blue or red like one of them.

Best Regards,
- Victor

Hi, I have an issue with displaying the filters on an Author template.

I build a video library with custom posts, and want to link the author pages via a template.

The template shows the author information and the custom post types, but it doesnt show the filters.

I recorded a video to explain the case, could you please have a look?

https://vimeo.com/user13692394/review/981267487/da33c596b5

thank you

Yonatan

Hi Yonatan

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

I sent the credentials

Hi KabbalahIsrael

We have checked the site, and unfortunately, to make it work on the author’s pages, you need to create a separate filter set for each author’s page.

It basically takes the query from the first page, and if there are common queries on other pages, it will work, but your first page is an empty broken page.

Best Regards,
- Victor

Hi Support Team,

I am reaching out to you on the behalf of my client. I can share the purchase code with you guys in private if you provide me your email ID.

I am in a case where I need to pass the user selected FE options from product archive page to a next custom page and further pass through the custom WP Query. How I can do it?

Kind Regards, WP Instinct Team

Here we set an example of the testing custom query for products – https://codecanyon.net/comments/30800969

You can try to use this query on the page and work with it, as long this query will not be chosen in the filter set “And what to filter” it won’t work.

You cannot make it work with two queries at the same time, you need two filter sets for that, one for the main query second for custom, etc.

Best Regards,
- Victor

Hi Victor/Support,

I can see a couple of tweaks with the FE plugin and need you guys to look into and provide me a solution for fixing it:

1. If I apply a condition using “pre_get_posts” before showing products on product archive pages, it works fine with the FE counter also for the filters showing in the sidebar but only while the priority is set to less than 10.

a) Case 1: Priority 9 and it works:

add_action ( 'pre_get_posts', function ( $query ) {
    if ( is_admin () ) {
        return;
    }

    if ( ! $query->is_main_query () ) {
        return;
    }

    $query->set ( 'tax_query', array ( array (
        'taxonomy'    => 'product_cat',
        'field'        => 'term_id',
        'terms'        => array ( '12345' ),
        'operator'    => 'IN'
    ) ) );
}, 9 );

b) Case 2: Priority 11 and it fails:

add_action ( 'pre_get_posts', function ( $query ) {
    if ( is_admin () ) {
        return;
    }

    if ( ! $query->is_main_query () ) {
        return;
    }

    $query->set ( 'tax_query', array ( array (
        'taxonomy'    => 'product_cat',
        'field'        => 'term_id',
        'terms'        => array ( '12345' ),
        'operator'    => 'IN'
    ) ) );
}, 11 );

2. And FE counter never works with ( or can say, never looks for ) the “post__in” while using within “pre_get_posts”. EG:

add_action ( 'pre_get_posts', function ( $query ) {
    if ( is_admin () ) {
        return;
    }

    if ( ! $query->is_main_query () ) {
        return;
    }

    $query->set ( 'post__in', array ( '10' ) );
}, 9 );

The middle content area reflects fine showing only one product having ID 10 but the FE filters counter in the sidebar still keeps showing a greater number than 1 ignoring the “post__in” condition. If I replace this “post__in” statement with any other query statement ( EG: tax_query ), then it reflects correctly.

Please let me know if anything is not clear and we can chat/talk.

Thanks!

Hi wpinstinct

We have forwarded this question to the development team, if we receive any information about it, we will let you know.

Best Regards,
- Victor

How to create a custom wp query visible to the plugin as a “And what to filter” option?

Hi, I’m integrating a static layout into WordPress by creating some sort theme of my own

I tried to make a standard wp query, like: https://wp-kama.com/function/wp_query#usage-examples

But it doesn’t show up in the option and I couldn’t find any information on how to do it properly

I’m not very experienced in WordPress, so I would be appreciated for a general description

Hi mx1334nko

Thank you for choosing Filter Everything PRO.

Unfortunately, we do not provide/debug custom codes.

But, we have this code for testing so you can try to test it as well

// Add this code to your theme's functions.php file

// Register the custom shortcode [custom_display_products]
function custom_display_products($atts) {
    // Extract attributes and set default values
    $atts = shortcode_atts(array(
        'posts_per_page' => 10, // Default number of products per page
    ), $atts, 'custom_display_products');

    // Get the current page
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

    // Define the query arguments
    $args = array(
        'post_type' => 'product',
        'posts_per_page' => intval($atts['posts_per_page']),
        'paged' => $paged
    );

    // Perform the query
    $query = new WP_Query($args);

    // Initialize output
    $output = '<div class="custom-products-list">';

    // Check if any products were found
    if ($query->have_posts()) {
        while ($query->have_posts()) {
            $query->the_post();
            global $product;

            // Create product display structure
            $output .= '<div class="custom-product">';
            $output .= '<h2>' . get_the_title() . '</h2>';
            $output .= '<div class="custom-product-image">' . get_the_post_thumbnail($product->get_id(), 'medium') . '</div>';
            $output .= '<p class="custom-product-price">' . $product->get_price_html() . '</p>';
            $output .= '<a href="' . get_permalink() . '" class="custom-product-link">View Product</a>';
            $output .= '</div>';
        }

        // Add pagination
        $big = 999999999; // need an unlikely integer
        $pagination = paginate_links(array(
            'base' => str_replace($big, '%#%', get_pagenum_link($big)),
            'format' => '?paged=%#%',
            'current' => max(1, get_query_var('paged')),
            'total' => $query->max_num_pages,
            'prev_text' => __('« Previous'),
            'next_text' => __('Next »'),
            'type' => 'list'
        ));

        $output .= '<div class="custom-pagination">' . $pagination . '</div>';
    } else {
        $output .= '<p>No products found</p>';
    }

    // Reset the post data
    wp_reset_postdata();

    $output .= '</div>';

    return $output;
}

// Register the shortcode
add_shortcode('custom_display_products', 'custom_display_products');

// Ensure pagination works for shortcodes
add_filter('query_vars', 'add_pagination_var');
function add_pagination_var($vars) {
    $vars[] = 'paged';
    return $vars;
}

So you can place this code in the functions.php file of your theme and use a shortcode on the needed page

[custom_display_products posts_per_page="12"]

Best Regards,
- Victor

Hello!

For some reason the filtering has stopped working on my site. It still works for filters that are actual variations (Colour etc), but filtering for attributes no longer loads accurate results.

The sidebar filter data is however accurate, but the main results no longer update/refresh.

I’ve disabled and reset settings and other plugins but cannot figure out the cause.

Can I send you my credentials please?

We have checked the site, and what you are trying to do is make multiple filters from tags? We’d recommend creating the needed attributes in the Products -> Attributes like color, size, etc, in order to create from each attribute separate filter. Do not try putting everything in the tags, and then creating separate filters from it, this is not a good practice.

Best Regards,
- Victor

Please see the ‘Brand’ filter on this page as an example:

https://www.personalisedclothing.co.uk/c/workwear/hi-vis/hi-vis-t-shirts/

The Brand filter uses a product attribute

Hi equicentral

We have placed the brand’s filter set on the product categories only, and it is working. But here is the issue, you are using a plugin to show each variable as a singular product, but in the database, all data is like one variable product. So instead of showing exactly one variable product (as singular), it shows two or more depending on how many variations your variable product has.

Best Regards,
- Victor

Hi support, please we have a question. We have a parent filter (with cars Brands – es. Audi, Peugeot, ...) and a child filter (with car model name – es. A3, 3008, ...). When we select the parent filter all works correctly. We’d like, if possibile, that if we open again the parent filter drop-down menu (cars brands), it will show all other brands but without the counter to (0) but the count working in the same mode of the first time, showing all brands the correct numbers (es. Audi (8), Peugeot (10), ...). Is it possibile? Thanks

In that case, for a parent filter, Audi (10) – Peugeot (5) – Volkswagen (9) turn off the “AND” logic.

But when you choose the child filter term, then they will affect what you can see in the parent one. And counters will be changed, as they all work together, so there is no ability to somehow lock the counters in one filter.

Best Regards,
- Victor

Got it. Thank you. Yes, we set the “OR” logic and there was an improvement but by also selecting the child filter, all the parent filters, except the selected one, display (0), giving the idea that there are no cars of those brands. However, I understand the logic you explain and it’s a shame that we can’t intervene. Thank you very much for the support and quick responses

Yes, that’s unfortunate, you can try to turn off counters, so it will look a bit differently.

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