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 The plugin is failing and when I check the settings I see that the license field is blank and when I want to register it I get the message that it is being used on 2 sites. Previously, the license was only used on the production and development website. starlightcorp.co and dev.starlightcorp.co/ How can i solve this?

Please send a copy of the response to web@hacoeur.net

Thanks

Hi starlightcorp,

You can activate the plugin on two sites, to activate it on other ones you need to deactivate it on one of the sites. It looks like you didn’t deactivate the license on the previous site. If you don’t know or don’t have access to the sites where it was activated we can deactivate it on all of the sites, so you can activate it only on the needed ones. But we need a license key from you, please send it via PM – https://codecanyon.net/user/fe_support

Best Regards,
- Victor

Hi Victor,

I send you the license key

Regards,

Hi starlightcorp,

The license was deactivated on all sites, you can activate it now on the needed ones.

Best Regards,
- Victor

Is there anyway to get the current active SEO Rule post id?

I am adding an extra field using ACF to the SEO Rule Page. When I try to pull this data using ACF, I need to provide the SEO Rule Post ID of the current active filter/rule activated.

Is there a way to get the active rule id?

If I use the code below, when I print the seoFrontEnd variable, it shows the current active SEO Rule post id, but it is a private object and I can not access it.

So basically, how can I access the current active seo rule post id

add_action(‘wp_head’, ‘wpc_add_filters_seo_description’); function wpc_add_filters_seo_description(){ if( class_exists( ‘FilterEverything\Filter\Container’ ) ){ $seoFrontEnd = FilterEverything\Filter\Container::instance()->getSeoFrontendService(); $your_new_hook = ‘woocommerce_archive_description’; remove_action(‘woocommerce_after_shop_loop’, [ $seoFrontEnd, ‘showSeoDescription’ ], 5); add_action( $your_new_hook, [ $seoFrontEnd, ‘showSeoDescription’ ] ); } }

Hi centrable,

You can get post ID for SEO Rule for current filters combination with the next code:

if( class_exists( 'FilterEverything\Filter\Pro\PluginPro' ) ){
    $seoFrontend = \FilterEverything\Filter\Container::instance()->getSeoFrontendService();
    $seoRulePostId = $seoFrontend->get( 'seoRulePostId' );

    var_dump($seoRulePostId);
}

Best Regards,
- Victor

Prima di acquistarlo volevo sapere se questo plugin supporta i campi filtro Checkbox creati con ACF per i prodotti woocommerce? E se posso filtrare i prodotti tramite questi checkbox?

Before purchasing I wanted to know if this plugin supports Checkbox filter fields created with ACF for woocommerce products? What if I can filter products via these checkboxes?

Hi maxistudio,

Thank you for your interest in the Filter Everything plugin.

Yes, the plugin supports ACF checkbox fields with options for the products or any other posts. You can check the demo here – https://demo.filtereverything.pro/example/acf/

Best Regards,
- Victor

Hello,

in my filter, nothing is shown in the “Dropdown” view. It is empty. If I change the view to “Labels List” or “Checkboxes”, the values are displayed.

My settings are: - Filter by: Custom Field - Meta key: hersteller - Filter Title: Hersteller - Prefix for URL: hersteller - View in Widget: Dropdown

It is also not possible to use Categories for Dropdown in this test. It´s empty too.

In ACF is this field type Hersteller an “Select” field.

This is the page I´m using my filter: https://firstev.de/elektroauto/

Please help to solve this problem

Hello, the dropdown view already exists. It is called “Manufacturer”. There you should already see four car brands “Aston Martin, Aiways, Air and Alfa Romeo”.

So you can see the name of the “Manufacturer” view, but not the dropdown box with the values.

And here is the issue, some type of custom CSS – https://prnt.sc/tWZyCamJB7o7 we turned it off, and everything is visible.

Best Regards,
- Victor

THANK YOU VERY MUCH!!! That is a CSS file from another plugin.

Hello, I need to style this range sliders for my website: https://usedrobots.com/all-robots/ to look like this ones:

https://ibb.co/rkHsN1G (The numbers in the box that are in Filter Everything Pro to be seen under the slider, like in the picture provided).

How can I do that? Thank you

Hi andreeaszabo,

In order to change the range slider in the way you want it to see, you need to use the template overriding – https://filtereverything.pro/resources/templates-overriding/ and custom CSS from Filters->Settings->Experimental->Custom CSS.

In order to get the needed classes of the element you need to use the browser inspect tool like this – https://prnt.sc/h6_GEYD3rczE

Best Regards,
- Victor

Hello and thank you for this amazing plugin Andrii ❤️

I can´t get the filter shown on my Elementor Archive page “Elektroauto” where I use Loop Grid. I have created post type “Elektroauto” with ACF and also custom fields. I added the filter as widget and also as shortcode to test both options. Both show me the same error message: No one Filter Set is related with this page. You can configure it in the Filter Set -> “Where to filter?” field.

It is also not showing if I place the standard Elementor Archive Post widget instead of Loop Grid.

To be sure that I have did it correct inside “Where to filter?” field, I have tested every option where to filter. Normally it should be the custom Post type page “Elektroautos” and in the second field: Any Elektroauto page (for a common query across all Elektroauto pages.

This is the page I try to activate the filter: https://firstev.de/elektroauto/

Please help to solve this problem

Hi LastSamuraj,

Thank you for choosing Filter Everything PRO.

Try to choose in the “Where to filter” “common wordpress pages” + “all archive pages for this post type”.

Best Regards,
- Victor

Hi Victor, It works now, I mean it shows up. I think the problem was that I did not create my template with Elementor direct, but with Xpro Addons Elementor Extension.

Thank you anyway!

Hi LastSamuraj,

We are glad to hear that the issue was resolved.

Best Regards,
- Victor

Hello Victor,

im trying to get a dropdown filter with multi selectable checkboxes like its in the Demo “Display Setting” under “3 Columns”: https://demo.filtereverything.pro/horizontal-views/color-blue/brand-hm/

Where can i find this Setting, or is there a documentation for that?

Thanks and BR

Hi AndersUSeim,

The plugin by default doesn’t have dropdowns with multiple selectable options. You can make it only using custom CSS and template overriding – https://filtereverything.pro/resources/templates-overriding/ for checkboxes. You can only select one option from a dropdown.

Best Regards,
- Victor

How to hide the filter name above the search field? Example: http://prntscr.com/AQZPQfbiDc_e

We want to use CSS. We already tried to do this, but the inscription was removed both inside the filter window and above it. We need the inscription to be removed only above the filter window, but to remain inside. Tell me what CSS to use.

Hi ruslanyh,

We have added a simple CSS code in the Filters->Settings->Experimental->Custom CSS. And how they all are hidden.

Best Regards,
- Victor

Thanks a lot!

Does the plugin allow for creating SEO rules for a “category + attribute” pair if that attribute is common to all categories? Or should a separate set of attributes be created for each category? For example, in our case, the categories are different breeds of cats. And the attributes are the colors of cats. Colors are common to all breeds. We want to create an SEO rule for a “cat breed + color” pair. For example, create an SEO rule for the filter “British breed + Black color” (see here: https://lapa.shop/cats/britanska/cat-color-chornyi/). We created the necessary filter set. But when trying to create an SEO rule for this set, it does not work. Why? Is it because the color attributes are common to all breeds?

Hi ruslanyh,

Yes, in that case, you need to turn off categories from indexing in the Filters -> Settings and then create an SEO rule like “Any Category” and “Any Color”.

The credentials are still active? If yes we can check it.

Best Regards,
- Victor

Yes, they are active

Hi ruslanyh,

As we mentioned, since you are using category pages, go to the Filters -> Settings -> Indexed Filters, and turn off the Product categories from it, so you can create an SEO Rule “Any Category” + “Any Color” Because the category page is an archive page, and you try to create a rule without archive page for archive page.

Best Regards,
- Victor

Hi there,

I have two questions;

1) When AJAX filter is activated, the product images aren’t shown. Only after hard refresh. Without AJAX (with page reload) it works fine, any ideas?

2) I want to manually sort one of my filters that currently looks like this:

> 25% < 15% 20% – 25% 15% – 19%

But I want it like this:

> 25% 20% – 25% 15% – 19% < 15%

None of the sorting options work to get this done. This is a ACF field by the way. Support is welcome.

It is working because we tested it on our end a couple of minutes ago:

1) The filter by custom field “options_to_check_the_sorting” – https://prnt.sc/UBSROdjVR2qN

2) the code and custom field e_name as ‘options_to_check_the_sorting’:

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'] === 'options_to_check_the_sorting') {
        // Define the custom sorting order
        $customOrder = array(
            'f',
            'a',
            'g'
        );

        // Create an associative array to store term objects
        $termMap = array();

        // Populate the term map
        foreach ($terms as $term) {
            $termMap[$term->slug] = $term;
        }

        var_dump($termMap);

        // 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;
}

3) The results – https://prnt.sc/8gNJ0IDb9NHH

4) we added to the code this line var_dump($termMap); so you can check how your slugs look like and write them down as filter terms in the way you need them, where we used just small letters because slugs are small letters. Of course, you can use the term name instead of slug, just modify the code a bit to use the name instead of slug.

As to the AJAX-related problem we have sent you a link to the page in the documentation – https://filtereverything.pro/resources/ajax-related-problems/

Best Regards,
- Victor

Hi rickaahz,

Use the slugs – https://prnt.sc/vhcKnVhpXvr8 in code, not the names as the code example is written for slugs comparison.

Best Regards,
- Victor

Hi,

is there an easier way to show the same filter set in multiple pages?

At the moment I have to create the same filter set for “search archive page”, “product lists/archive pages” and for example for a “brand” page that I have. And I also have to build it always 2 times for the same pages as I use the filter in a sidebar and additionally in a “off canvas sidebar” that only pop ups when screen is small.

So I have at the moment 6 filter sets that are exactly the same and I have to change all of them if I “normally” would only have to change one filter set. It feels unnecessary. I tried a lot with the settings, but I don´t see an option where I can choose like:

“Show this set also on this and this and this page / archive, etc.” Because I always want to filter on the same page and your current option of “alternative place to filter” is not working as expected when I want to achieve my goal.

Any idea?

Thanks and regards!

Ok, thanks.

I will have at the end then I thinks 8 to 10 same filter sets that will be the same. :D But I hope changes in future will be small and I don´t have to put much work in it anymore.

Thanks for your work.

Regards

Ok thanks.

Hi hwvaubel,

We understand the importance of finding a solution and we are actively working towards it. We will ensure that the solution will cover all necessary aspects.

Best Regards,
- Victor

How can I make the ‘SEO Description’ (under SEO Rules) replace the Woocommerce Product Category text? (called ‘description’ under the woocommerce category edit page) and not the ‘Category Text’.

The ‘Description’ appears at the top of the page where as the ‘Category Text’ appears at the bottom.

I’ve searched here and found a function ‘wpc_add_filters_seo_description’ but that doesn’t work as it just still shows the original category description and puts the Seo Description under the chips.

From what I’ve found, the do_action ‘woocommerce_archive_description’ on the archive-product page is where the description is being handled but also where the chips are being inserted.

I just want the SEO Description to replace any Category Text when a filter is clicked. How do I go about this?

Hi centrable,

Here is an example of the code:

add_action('wp_head', 'wpc_add_filters_seo_description');
function wpc_add_filters_seo_description(){
    if( class_exists( 'FilterEverything\Filter\Container' ) ){
        $seoFrontEnd = FilterEverything\Filter\Container::instance()->getSeoFrontendService();
        $your_new_hook = 'woocommerce_archive_description';

        remove_action('woocommerce_after_shop_loop', [ $seoFrontEnd, 'showSeoDescription' ], 5);
        add_action( $your_new_hook, [ $seoFrontEnd, 'showSeoDescription' ] );
    }
}

There is a remove action, in general removing the category description is not on the plugin, as the SEO description is a separate addition (because some users want to have both). If you want to remove it, you need to have knowledge in WP hooks, how to add and remove actions.

Best Regards,
- Victor

Hi,

I’m using Filter everything in combination with Elementor Pro on a test site in my local environment.

When I activate Filter everything, the Elementor library is not working. When I deactivate your plugin it is working again.

This happens when I edit a page in Elementor and try to download a template from the library.

In the console I see this errors appearing: web-cli.min.js?ver=3.16.6:3 GET http://templatesite.local/wp-json/elementor/v1/template-library/templates?source=remote 404 (Not Found)

No route was found matching the URL and request method.

{code: ‘rest_no_route’, message: ‘No route was found matching the URL and request method.’, data: {…}

Uncaught (in promise) {code: ‘rest_no_route’, message: ‘No route was found matching the URL and request method.’, data: {…}

These are the only plugins that are active on the site. I have the latest versions of the plugin installed. Elementor Version 3.16.6, Elementor pro Version 3.16.2 and Filter everything pro Version 1.7.15.

However, This message keeps displaying: There is a new version of Filter Everything PRO available. View version 1.7.15 details. Automatic update is unavailable for this plugin. To enable updates, please enter your license key on the License page. If you don’t have a license key, please purchase it here.

Hi remco9,

Thank you for choosing Filter Everything PRO.

Can you pleasae provide information which PHP version you are using?

Best Regards,
- Victor

PHP 8.1.9 is used.

This is very weird behavior as it should work normally without any issue. We checked it on our back and it is working well.

Perhaps this is some type of conflict with custom there or custom code or any other things, try to use the 2021 default WP theme. If you have it only locally we cannot test it, as we would ask for credentials if it was a live site.

Best Regards,
- Victor

Hi, I’m using the Filter everything Pro on one of my site. https://approvedprodev.wpengine.com/vendor/

I need to do few customisation.

1. How to add custom jquery script to select the child items when parent item is selected (https://prnt.sc/56qrF0z2IOxF)

2. On the setting page of the respective filter it show the query to run but how to modify the query to pass the additional meta query.

Thankyou

Hi approvedpros,

Thank you for choosing Filter Everything PRO.

1) First of all there is no way at the time to choose a couple of filter terms with one click. Currently, the plugin works with one term at a time to modify the links. So even if you possibly make it to choose a couple of filter terms at the same time you’ll get an error. You can modify terms and use your own link so it will include all of the selected links of the subterms but you will need to do it manually. More about the hooks you can read here – https://filtereverything.pro/resources/hooks/"

2) “On the setting page of the respective filter it shows the query to run but how to modify the query to pass the additional meta query.”

In the filter set settings, you can choose the query that will be used to filter the items, you can add/pass additional meta query by custom code which most likely will break filtering, as the plugin makes kind of a “cast” of it and works with it.

In general, those are custom functionalities that would require some knowledge of WP and the plugin itself to make it all work without any issue and it would require not just a side code but modifying the plugin code as well.

Perhaps if you describe what you would like to see in the end result we could advise any other paths on how it can be done.

Best Regards,
- Victor

Hi, how can we change the text of the mobile “Filters” button?

Thanks!

Hi webmaster492,

For EN language you can use a template overriding editing the bottom-controls.php file. For other languages, you can use loco translate to translate them to your needs.

Best Regards,
- Victor

Hi, just wondering if it’s possible to hide certain filters (in the widget on the left), but still maintain it’s filterability through the URL link

Hi 4vnbs5cmys,

Here is support for accounts who purchased the plugin, and if you already did it, please write your request from the account where you purchased it. And considering the problem please provide the link to the page with the issue so we can check it.

If you are using the Free version, please write your request on the WordPress support forum – https://wordpress.org/support/plugin/filter-everything/

Best Regards,
- Victor

Hi, there!

Great product, congrats! We are having an issue, however. Filters used to work flawlessly when we signed off the project to the client.

We just got a call that filters stopped working. We checked all settings, thought about Ajax css class, etc., but it seems this is not the issue. We turned off Ajax filtering and still – when you select the filter, it reloads the page and still all products are shown. How can we solve this?

Thanks.

Solved it ourselves. For anyone having a similar issue: Make sure that in your filter set settings the ‘What to filter?’ part is set to ‘Main product query’ or something similar.

Hi ptsilkov,

Thank you for choosing Filter Everything PRO.

We are glad the hear that the issue was resolved.

Best Regards,
- Victor

I have something really strange. When selecting multiple filters, the screen turns into 1 single column full width. The complete design is messed up. I can’t find the logic behind this. Here is an example:

Good: https://www.pizzastore.nl/product-categorie/pizzascheppenborstels/pizzascheppen/perf_fltr-nee/ Bad: https://www.pizzastore.nl/product-categorie/pizzascheppenborstels/pizzascheppen/perf_fltr-ja/afgeschuind_flrt-nee/

Hi consiglio,

It is all pretty simple, on the page where it is good page has styles:

display: flex
flex-direction: column

the “flex-direction: column” is crossed out which is not active and working as a default “row”

On the second page:

display: flex
flex-direction: column

the “flex-direction: column” is active, that’s why you see it in the column style. That’s not the plugin issue this is strictly theme styles.

Best Regards,
- Victor

Hi, Filter widget on mobile is not working on my website. I however see the filter button.

I’m using popular on Themeforest theme (so no doubt theme code is clean) and temporarily removed all modifications for now so that we can resolve the issue.

Add this code to the functions.php, and edit the breakpoint to your needs when the sidebar is disspearing:

add_filter( 'wpc_mobile_width', 'my_custom_wpc_mobile_width' );
function my_custom_wpc_mobile_width( $width )
{
$width = 1180; // new desired breakpoint in px.
return $width;
}

Best Regards,
- Victor

Hi Victor,

That worked for me. Thanks a lot.

I’m having issues with my shop page loading very slowly. I’m trying to use elasticpress and filter everything. I installed a query browser and can see that the main query runs (fast) and that there is a second query that runs but really slowly. I checked the arguments on each and the main query contains all the combinations of filters I’m trying to search, while the second has no filters and is set to retrieve all posts. You can see a screen shot of what I’m seeing here: https://prnt.sc/1lG9DlhARDxV The second (post) query only shows up when I’m using filter everything.

Also, I don’t know if this is related, the counters on the filters are not showing the correct number of products. The results are returning the correct amount of products but the counts are wrong. All of the filters are being run on my main shop page. I’ve gone through and selected main query as the “what to filter” as well.

Hi saratogawine,

Try it this way to test it, place the filter set on “Common WordPress pages” + “Shop” if you are using the shop page. Test it and see if the counters are correct. If they are then place the filter on the “Product Category” + “Any Category” and check if the counters are correct across different category pages. If they are also correct then you just need to create two filter sets, one for the shop page and the second one for categories. If it won’t work for categories correctly it means that each category is using a unique query, and if you place it on a certain category it should work and show everything correctly. There are some plugins that make such behavior that each category page has a unique query. Setting them on Any Category shows incorrect values in counters because of it.

Best Regards,
- Victor

Any insight in to what the extra query that shows up with Elastic Press? It only shows up when filter everything is activated. Otherwise without Filter Everything there is only the main query that runs / shows up in Elastic Press (and is the faster of the 2 queries)

Hi saratogawine,

We need more details on that query with the request and all other information, send a message via PM – https://codecanyon.net/user/fe_support so we’ll write you from our email, where you can send screens (full size) so we can check it all and provide an answer.

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