Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,652 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8944 comments found.

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

Hello, I am encountering a problem with the filtering plugin integrated with Avada to display blog posts. When I show 6 blogs for example and a Load More button to display more, whenever I filter something, the Load More button does not work anymore. The button works at the beginning if no filter is applied. This is an example URL: https://www.boc-group.com/en/blog/. Do you have any idea why this is happening please? Thank you.

Hi BOC-Group

Yes, the issue here is in a load more pagination functionality, that it is absolutely ignoring the filtered query and working only with the original query. There is this plugin for Woo – https://wordpress.org/plugins/load-more-products-for-woocommerce/ or load more anything for any post type.

Best Regards,
- Victor

Since installing the plugin my traffic has plummeted. Please can you advise?

Thank you.

Hi lgardinerael

Thank you for choosing Filter Everything PRO.

Unfortunately, we do not know how we can help here. Did you create SEO Rules for filters? You can find the information about it here – https://filtereverything.pro/resources/seo-rules/

Best Regards,
- Victor

Hello. I use [fe_sort id=”3”] to display the sorting on category and tag archives pages. it works great. I’ve created 2 custom taxonomies and added the same shortcode on my archives template. On the 1st it’s working and the other one it’s not displayed while the parameter looks the same. Their is a way to debbug to see why it’s not displayed ? Thanks.

I found the issue.

Hi guillaumelorain

We are glad to hear that the issue was resolved. You did a Good job!

Best Regards,
- Victor

Hello, I read under item details that “DEVELOPMENT PLANS FOR FEBRUARY 2024 – XML sitemap for indexed filtering result pages IN PROGRESS”. Has this been released yet?

Hi Wooden

Yes, the search field in the plugin is working the same way the filters do. So you basically enter the needed text and it will show only posts matching this text, and all of the filters going to work together with it, and change its counter as well.

It cannot search live or show any propositions. You have to enter the text and hit enter in order to filter and show posts that match the entered text.

Best Regards,
- Victor

Hi Victor,

And you are not even planning instant/live search function (without hit enter)? (I mean in the near future.)

In future updates, everything can happen, development team has an idea to make it compatible with the relevanssi search plugin, in order to use their search algorithms to improve its search capabilities.

Best Regards,
- Victor

Hello,

I have a page with two queries for different post types (product and post) but filtered by the same taxonomy.

The filters seems to work fine, but the item count for each label (term) is incorrect.

I have tried using different names for the url prefix but no the plugin does not allow me to do this. This also causes the prefix to be the same for both queries and when reloading the page both are filtered out.

Is there any solution to split the two queries with the same taxonomy filter?

Here are two screenshots of the two filters: https://paste.pics/5aa80aa1b8dbee45747b2517c8d22231 https://paste.pics/eee0be0c2d1c60c3b277d7aebdf38277

Thanks!

Hi copymouse

The only solution here is to have two different taxonomies so they won’t cross at all.

Best Regards,
- Victor

Hello, I purchased the PRO version of your plugin, but some attributes on the frontend are greyed out. I checked these in detail and for some there are actually products with that attribute, but there are also attributes that aren’t even in my attribute list. Could you help me fixing the mess?

Either there is some data corruption or a third plugin conflict. You can debug it by turning off plugins one by one, in order to find the issue. Also, with the use of the default theme to be 100% sure, it is not caused by the theme.

In general, a refund is possible with the appropriate form from the account where the plugin was purchased.

Please note, that the support team is not working with the refunds.

Best Regards,
- Victor

Hello, just wanted to update you. I found out your plugins works fine with other themes, so the problem is indeed my theme. The issue is there even with other search tools. I kinda found other ways to mask the issue for the moment, since I cannot switch to other themes without breaking everything and I don’t plan to make the website from scratch. I will keep using your plugin after all, since it’s the best I found until now for the purpose. Thank you for your help!

Hi specialgommematera

Yes, unfortunately, this is sometimes the case. Especially if the themes do not meet WP standards.

Best Regards,
- Victor

Hi there,

We currently have two filters on our website: one for Tires and one for Wheels. These filters are shown on their respective category pages:

Tires – https://jessel89.sg-host.com/product-category/tires/ Wheels – https://jessel89.sg-host.com/product-category/wheels/

We want to add two more filters for both Tires and Wheels on the homepage. These new filters should have three options: Brand, Model, and Season, and should be displayed horizontally.

Right now, the horizontal filters on the homepage only show or can filter 8 products, which are the featured products, instead of all products.

See screenshots below: https://paste.pics/RBL0P https://paste.pics/RBL0W

When setting up the filter, under Settings > What to Filter, we can only select Product query #1 or Product query #2. This seems to limit the filter to just a few products. If we could select “Product query. Main Query,” then all products would be shown and filterable.

See screenshot below: https://paste.pics/RBL0K

What can we do to use the “Product query. Main Query” filter set for the horizontal filters on the homepage? Or how can we show and make all products to be filterable on the homepage?

Looking forward to your response on this matter. Thank you!

So we are a bit confused about which width we are talking about:

!) Is it this one – https://prnt.sc/mIPtkdsf6peg

2) Or this one – https://prnt.sc/M8EI9tp77Gvq

Best Regards,
- Victor

Hello, Victor! It should be the first one, since that is the one for Tires. The second one are for the Wheel widths.

We have checked the ACF data, and unfortunately, you made a crucial mistake. You named all of the custom fields in different groups with the same name. And they all should be unique. Before rushing and changing the meta keys of those fields to the unique meta keys, please check this documentation so you won’t make even more issues – https://filtereverything.pro/resources/acf/#important

Best Regards,
- Victor

Hello, I’ve purchased 2 licenses, one for https://demarco-prototipi.com/ a9bead9b-3fd9-416d-a3f5-b30261748f84

the other for http://contamarce.it/ 6c6926a7-4cd3-4c37-bcbb-1d30286ad679 I reveive “Invalid license key. Please enter correct license key.” for both. Thanks for your support.

Hi, I’ve just followed your instructions for one site. Thanks for your attention. Fabrizio

Hi, I’ve found the solution by recreating previous settings, so you don’t need to access. Thanks for your support. Kind regards

Hi agatucciaebelarda

We are glad to hear that the issue was resolved.

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