Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,683 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8967 comments found.

Hello, Pagination is not updated to reflect the changes of the number of posts after filtering. I’ve tried it with and without AJAX

I also tried every possible way to include both the pagination links and the products in the wrapper

Hi evanv_yt,

It seems that pagination is not compatible with our plugin and making some type of the copy of query and using it without taking in fact the filtered elements. Could you send the link to the page with the issue si we can check it?

Best Regards,
- Victor

Sorry it doesnt worky totally and the worst part is I CANT EVEN REMOVE YOUR PLUGIN. It keeps failing to remove it.

Verwijderen van: Er heeft zich een kritieke fout voorgedaan op deze site.Meer informatie over probleemoplossing in WordPress. mislukt

https://*********.nl/wp-admin/plugins.php?action=delete-selected&checked%****%5D=filter-everything-pro%2Ffilter-everything.php&plugin_status=all&paged=1&s&_wpnonce=2a****** (i removed the numbers and letters here and replaced it with * because i dont know if it is safe to place that here in public)

Hi varan,

You need to remove the filter set via FTP, and could you please check what PHP version do you have on the server? If it is higher than 8.1 please downgrade it to 8.0 or 8.1 in order to make plugins work normally.

Best Regards,
- Victor

Hello !

I use your plugin on a new website still in development : http://abac.art/ventes-a-venir/

I need to order items differently (total custom ordering), which is not by name, post count or term ID.

This is what I need :

Type : Peinture Sculpture Photographie Autre

Style : Art classique Art de transition Art contemporain

Periode : Début XXe 2019

this period filter is a custom field from ACF, it will have many different period I would like to be able to order it by myself.

Could you help me with this ?

here are credentials :

/connect-abac damien Kokal5959,,!

Thanks !!

Hi Damien_SW,

Thank you for choosing Filter Everything PRO.

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

Here is the code example for a custom color oredring:

add_filter('wpc_terms_before_display', 'wpc_sort_terms_as_needed', 10, 2);
function wpc_sort_terms_as_needed($terms, $filter){
    // pa_color - is desired taxonomy
    if ($filter['e_name'] === 'pa_color') {
        // Define the custom sorting order
        $customOrder = array(
            'red',
            'blue',
            'green',
            'purple'
        );

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

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

        // Sort the terms based on the custom order
        $sortedTerms = array();
        foreach ($customOrder as $slug) {
            if (isset($termMap[$slug])) {
                $sortedTerms[] = $termMap[$slug];
                unset($termMap[$slug]);
            }
        }

        // Add any remaining terms to the sorted array
        foreach ($termMap as $term) {
            $sortedTerms[] = $term;
        }

        return $sortedTerms;
    }

    return $terms;
}

Basing on this example you can create a custom order for any of the needed terms.

Results can be seen here – https://prnt.sc/pYxJUGe6tXVM

Best Regards,
- Victor

Hello, c

thanks for your answer. Can you tell me where I should add this code ? Which file and should I use child theme ?

Hi Damien_SW,

It should be placed in the functions.php and you should rewrite it to your needs. But if you do not have enough dev skills, you can hire a dev to do it instead of you, using such platform like Upwork.

Please note that we do not provide or debug custom codes, as it is out of the scope of support policy here on the CodeCanyon.

Best Regards,
- Victor

Hello, i bought the pro version, but i can’t activate it, it says unknown error. And yes, i clicked on “get yout license key” and logged in via envato to retrieve it.

just sent a PM with the credentials and license key .

Hi mastahtheboss,

The plugin was activated and everything is working well.

Best Regards,
- Victor

I just bought the pro and the license giving to me isn’t working.

Hello ibenitez.

Thank you for choosing the Filter Everything PRO.

Please, note that License key and CodeCanyon purchase code are different things. To set License key, please go to Filters -> Settings -> License, click on the “Get your License Key” https://prnt.sc/-ehm9df3H_XT and you will be redirected to the new page. Log in there with your Envato credentials and you will see your License key for the Filter Everything PRO plugin.

Thank you. Regards.
- Andrii.

Hi, just go the plugin after trying out with your free version but I’m having issues with the filter set. I created a filter set and will be using to filter my Classified Listing (and woocommerce product page). Now, related to filtering Classified Listing plugin entries, when I try to update the “Alternative Location”, or anything at all in that filter set, it simply does not update. Hoping for some help asap, thanks (in fact, doesn’t even work anymore to add a new filter set)

I haven’t sent ANY credentials yet. In fact, I wrote the message and never sent it since I was waiting for the backup to finish up.

Does your plugin not support hierarchy and multi-option to click when opening dropdown menu?

Dropdown with hierarchical and multi-selection is planned but haven’t implmeneted yet. These features will be in the future plugin updates but definitely not faster that in next 3 months rather in 6-month or more period.

Hello!

Here’s my problem. I have created a filter set for filtering Products post type. Using Woocommerce, btw. But for now, I’ve got a “No one Filter Set is related to this page. You can configure it in the Filter Set -> “Where to filter?” field.” message a few times, and even when I set it to the right page, it’s not showing up.

But, I’ll be more specific. I’m using Astra Pro theme, and I created custom layout for mega menu. In there, I couldn’t find “Filter Everything” widget, simply not on the list, so I tried adding a shortcode. When I did that, I got the error I mentioned above, no matter what I choose for “Where to filter?”.. I selected front page, Custom Layouts (that’s the Astra’s post type in use for this), mega menu, Page. So, when I switched it to “Shop”, it did show up but the wrong filter, even though I’ve added “id=” parameter to the shortcode, it just ignored it.

I couldn’t get this to work anyhow. I tried setting up that filter set on Shop or front page sidebar and still, it’s not showing up.

Also, even though I’ve set this filter set to filter Product post type, when I click on ‘add filter’ I don’t see Price anywhere in the list, only categories, and product attributes.

Can you, please, help me out with this cause, even though I like what you did and so far I’ve used the non-pro version, for this site I need more customization, and seems like this isn’t a good solution so far. Thanks!

Hi danilitto,

Thank you for choosing Filter Everything PRO.

You should specify the location of the page/category and etc in the “What to filter” dropdowns, for shop it is “common WordPress pages” + “shop”, for custom pages it is “pages” + “my custom page”, for categories “my product categories” + “my category”.

The id in the shortcode does not specify which filter will be displayed (the id will be removed soon from the shortcodes). If you have a couple of filter sets on the one page you “priority” settings at the bottom of the filter set settings, the filter with higher priority will be shown in the widget first.

You can add a price range slider by the “Custom Numeric Field” using the meta key of the price, for the Woo default meta key for the price is _price more meta keys you can find here on the filter set setting page – https://prnt.sc/bBavm4i4s8Rk

Best Regards,
- Victor

Pre Sale question: is there a way to let the plugin filter all the categories … even if we are on specific category page ?

Example: in your demo blog, you have these categories: - Health - Beauty - Food

Health is the parent , but if i land directly on the Food category … i can’t filter back to beauty directly . This is the only thing that is pulling me back , because so far your plugin is perfect for my needs, but i need to fix that .

just bought the pro version, but i have problems with activating it, it says “unknown error”

Hi mastahtheboss,

Thank you for choosing Filter Everything PRO.

Yeah, because you are browsing through different categories pages, you can use breadcrumbs to return back to the main category and filter items there. Because in another case you always would see all of the products as you do on the main category page.

It seems that your server does not allow connection with our license server. We can activate it on our side, but we need the following things from you:

1. Credentials to your /wp-admin following this document
2. And your license key.

Please, send all these via PM.

Best Regards,
- Victor

Hi mastahtheboss,

The plugin was activated and everything is working well.

Best Regards,
- Victor

Hello! I am trying to filter my posts by categories on a page. I can see the filters on the page, but I dont see anything to come up.. How can I see all my posts in a page and use the filter? I mean I have multiple posts with different categories. And I have a page, where I want to use the categories filter, to only see those posts whats includes that actual categorie(s). Thanks for the help in advance! Zoltan

Hi Zoltan,

Thank you for choosing Filter Everything PRO.

Not exactly clear what you mean by “I can see the filters on the page, but I dont see anything to come up” Our plugin doesn’t display posts it is only filtering them. So if the category page has some amount of posts and you apply the filter set to that page/category it will filter those posts.

Just like here – https://demo.filtereverything.pro/category/health/ if you remove the filter plugin from that page only the filter from the sidebar will disappear.

Try to specify the correct query in the “And what to filter” dropdown setting in the filter set. In case the filtering isn’t working.

Best Regards,
- Victor

Excuse me, i dont find sort widget. I use classic editor. Thanks

Hi fbertini1,

Thank you for choosing Filter Everything PRO.

If you are referring to that you cannot find the sorting widget in the widget area using the classical editor it is shown like this – https://prnt.sc/UOEoflYzAEKW

Best Regards,
- Victor

Hi, I’ve upgraded to the pro version but doing so has caused the filter to stop working on the front end. When I select a filter, I’m redirected to the pretty URL but it causes a 404. I’m using in combination with Elementor Pro.

I’ve had to deactivate FilterEverythingPro and stick with the free version but I’d like to reactivate it. What’s causing the 404 issue and how do I resolve it?

Thanks, Ben

Any update on this?

Hi cameracrate,

We will provide the information on this issue in a couple of hours today, as it needs additional checking. It seems like some conflict with the custom code or the certain plugin.

Best Regards,
- Victor

Update.

The issue is in the permalink manager pro plugin, to make it work you can either turn off the PMP plugin or add this to the functions.php define( ‘FLRT_PERMALINKS_ENABLED’, false ); so instead of URL with applied filters like /some-brand/color-red/ and so on you will see the GET parameters. But it will work and filter everything. Our permalinks in the plugin and the PMP plugin are not compatible.

Best Regards,
- Victor

Hi, it’s very urgent. When I try to add the Custom Fields in Filter Pro it’s not showing the data. But it shows the count but when we click on the check box it’s showing no data. Pls, give me the solution.

Hi logakarthikeyan,

Hi, it’s very urgent. When I try to add the Custom Fields in Filter Pro it’s not showing the data. But it shows the count but when we click on the check box it’s showing no data. Pls, give me the solution.

Is the data not shown in the filters widget as filter terms or data as products? How and where does it show the count if it is not showing the data?

Provide more info on “when we click on the check box it’s showing no data” Do you mean all of the products or posts are disappearing from the page or what type of action is happening?

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

Best Regards,
- Victor

https://emerituslearning.com/?s=&post_type=program Click on the Program Language and Duration (Custom Fields) Filter on the Left side of the page. Then you will find what issue we facing

Have you edited the names (meta key) of those custom fields? After they were created?

Best Regards,
- Victor

Hi, I wondering if it’s possibile to customize sorting options based on woocommerce category. In my case I set up a shop with categories “Car sales” and “Car rental” and i need to add only sorting option “price” for Car sales products and “Rent category” for Car Rental products. Thank you

It works! Thank you!

Hi Funkwarrior,

I’m glad that your problem was solved.

If it is possible I 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!

Best Regards,
- Victor

Done! Thank you Victor!

getting error whenever i enter activation key https://prnt.sc/gxzWBijbfzXd

We have activated the license and everything is working well.

Best Regards,
- Victor

Popup not working in mobile device

Place the [fe_open_button] next to your filter widget shortcode and test it.

Best Regards,
- Victor

Sorry man, but i am totally not happy with this plugin. It is so complecated and it doesnt work. Also we have tons of colors and id says only Black (2). Instead of all colors and at least of products per color is like 30. When you click on size it says

It appears that this page does not contain a container with the specified «HTML id or class of the Posts Container». Try to specify the correct one in the Filter Set settings or the common plugin Settings.

etc. etc…not good.

Hi varan,

Thank you for choosing Filter Everything PRO.

That’s not a problem, please describe to us what you cannot understand in the plugin and we will provide you with all of the needed information.

Also, please provide the link to the page with the issues so we can check.

“It appears that this page does not contain a container with the specified «HTML id or class of the Posts Container». Try to specify the correct one in the Filter Set settings or the common plugin Settings.”

This message means that if you turned on AJAX functionality, you need to specify in the «HTML id or class of the Posts Container» the class or the id of the products that should be updated by AJAX. You can find the needed class of products container via inspector in your browser on the specified page.

You can provide the credentials to the wp-admin dashboard following this document so we can help you to set up the filter set with all the needed settings as example.

Best Regards,
- Victor

not working in my website, i am using divi theme and builder. whenever is us filter is shows all results URl https://calearner.com/questions/

Hi geetjain29

This is not an error, it is just telling that on this page zero filter sets were applied. The thing is that you have archive pages, and use more likely broken template for it. And you have singular pages like this one – https://calearner.com/questions-2/ and in order to place a filter set on this page, you need to choose in the “Where to filter” dropdowns “Pages” + “My name of the page”.

Taxonomy pages like categories and others, can be placed using “My taxonomy name (category)” + “Name of the certain category (Any Category)”

Archive page “common WordPress pages” + “All archive pages”

So if you have any questions about some pages where you cannot display our filter widget, please send us the link to those pages so we can provide you with an example of how to do it.

Best Regards,
- Victor

Hi, Everything is working fine in https://calearner.com/questions this is a page with blog element in it. but pagination is not working.

Hi geetjain29

That is exactly what we have mentioned in our previous answers, that pagination is not working correctly there.

Even if you completely delete our plugin from your site and test that pagination functionality, it’ll still work the same (not work on that page).

This issue is more likely from the server settings or some plugin conflict that you have installed on your page.

Best Regards,
- Victor

Good afternoon I would like to know how long the license lasts or if I buy it I will have it forever

Hi facturasceragro,

Thank you for your interest in the Filter Everything plugin.

It’s a lifetime license.

Best Regards,
- Victor

I would like to show the visitor, based on the category in which he finds, only specific products, perhaps based on the “brand” or “processor type”, obviously if we are, for example, in the IT category. When the user then clicks on another category, for example TV, I would like to show the “brand” (it would be an attribute) of TVs only and not of PCs, coffee machines, etc. Also, to give the user the possibility to make a multiple selection, is it necessary to insert the reset and enter keys?

Hi gennarosalvi,

It’s simple if you have product categories like TV/PC/etc. You place certain products in those categories with certain attributes only. Choose in the filter set setting to hide empty terms and hide empty filters. And in the filter widget, you’ll see only the attributes for the products that you have in the current category.

Yes, in “Apply Button” mode you can choose a couple of filter terms and only then hit Apply to filter the products.

Best Regards,
- Victor

Hello Vittorio, must the attribute name be unique? For example, in the case of the “brand”, I use the same attribute name for all the brands of the products I have on the site, for example if I go to computers or notebooks, I would not like to see the brands of coffee, e-bikes, etc.

Also the filter never filters our product pages, I’m afraid I misunderstood the URL prefix issue. In my first set I wrote informatics11.

Please check the following link:

https://www.just-click.it/product-category/informatica/#

The filter widget will show only brands that are available for the products that are placed in the current category. So if PC and Notebooks have a brand Apple it will be shown on both categories but it will filter only products that are placed in the category PC or Notebooks and it will display different counters depending on how many products are in those categories. If you on the category Shoes it will show brands only for shoes.

Try to change the query in the filter set settings in the “And what to filter” dropdown and hit update then check if it is filtering normally.

Best Regards,
- Victor

Hello again, I wrote to you yesterday about the filter settings, I probably didn’t explain my problem enough, I have an attribute of the starting current, where the values start from 270 and go up to 1500, there is filtering only by alphabet, attribute id and number of records (screenshot https://imgur.com/a/i019SXE). Alphabetical filtering suits me, the only thing is that values ​​of 1000 and above go up, since they start from 1, how can I make the filtering start from the smallest number and end with the largest, thanks in advance for the answer!

Hi AmperBender,

We tested it with custom fields and attributes and here is what we get:

This is what we have before applying the sort – https://prnt.sc/BZKzCzfLmZE_

We set the term name “abc” sorting – https://prnt.sc/p68e0gYvGJ0a

And here is what we get – https://prnt.sc/E6KHo7og-ido

So perhaps the issue is that some of them are numbers and some of them text, serialized values and that’s why it is sorting it wrong.

Also, with attributes – https://prnt.sc/Qyqb71tuIknQ and after sorting – https://prnt.sc/Q3jIgIYLaY-9

Best Regards,
- Victor

Hello! I use WP 6.3 The first problem is that the FE widget does not appear in the blocks collection so I can add it in the page where I want the filters to appear. The second problem is that in the “And what to filter” field the only option is “no WP Queries matched the post type… found in this page”. I have created a custom post type with ACF which I want to filter. Thank you.

The Twenty Twenty-Three theme doesn’t support classic widgets. You can use the shortcode [fe_widget] to display the filter widget, more about shortcodes you can read here – https://filtereverything.pro/resources/shortcodes/ But the sorting widget won’t work as it needs the widget area to customize the sorting options.

Best Regards,
- Victor

Sorting is not necessary for me so it’s ok. The [fe_widget] made the filter checkboxes appear but I really need your help on how to make it function. Where should I place the shortcode in regard with the query loop? Inside the Query loop or somewhere else? I tried clicking the checkboxes but the filtering does not work. You can see the structure here: https://ibb.co/KFjY1NW

Hi evanv_yt,

The shortcode should be placed anywhere on the page or if you want after the header if you are adding it to the page template. But definitely not inside the query. And choose from the filter set settings and in the “What to filter” choose the needed page with the shortcode and the products.

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