Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,662 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8953 comments found.

Hi, I’m testing filtering on custom fields. It works perfectly on numeric ranges but not on other field types.

I notice when filtering on numeric range the original page URL (containing index.php) stays: for instance https://mywebsite.com/index.php/test_block/

When filtering on other field types (text or boolean) I get a “page not found” error, and I notice the URL changed to for instance https://mywebsite.com/test_block/country-france/

What could be the cause? URL prefix is ‘country’ in above example

Regards, Wim

Hi Wim

Thank you for choosing Filter Everything PRO.

The index.php should not be in the URL, this is considered as a bad practice. Thus the filtering is not working. As to the second URL 404 error, please make sure that all your URL prefixes are unique, go to the Filters->Settings->URL prefixes and change it to the unique ones for example make them fe_myprefix.

Best Regards,
- Victor

Hi, after changing the permalink structure all filtering works indeed, thx

Good job! We are glad to hear that everything is working now.

Best Regards,
- Victor

Pre-Sale: Can the category filter be made to respect the category url, without adding anything to it? for example: category-category-name >> category-name. Because it doesn’t allow the field to be left empty.

Hello Claudioif

Thank you for your interest in the Filter Everything PRO.

If the category URL will be the same as default category URL, the category archive page will be opened :-)

That’s why it should be different for the filtering results page. It will be in according to the scheme /{category_filter_slug}-{category_name}/

Where {category_filter_slug} – anything you type in appropriate filter field.
{category_name} – regular category slug.

For example:
/cat-laptops/
/cat-smartphones/
/cat-tablets/

And you can set up single SEO Rule for all such category filter pages in the FE plugin settings and all SEO data can be generated automaticaly for these pages.

Thank you.
Regards.

Perfect, I have one last question for you. I usually work in an environment that is not the domain. for example: web.com/demo1. Which I then put into production on the client’s host when the design is completed. In this case, how is it done with the licenses? Thank you.

Hi Claudioif

You can activate the license on two sites, usually, it’s stage and prod. And then simply deactivate the license from the stage site.

Best Regards,
- Victor

Hello! When entering the admin panel of the site, I see the following message:

Warning: Invalid argument supplied for foreach() in /home/vn511122/lapa.shop/www/wp-content/plugins/filter-everything-pro/src/Entities/EntityManager.php on line 640

How to deal with it?

Hi ruslanyh

Please update to the 1.8.2 version of the plugin and it will gone.

Best Regards,
- Victor

The fact is that the plugin has already been updated to version 1.8.2: https://prnt.sc/hrcwsbKUo0Fo

Uhum, so here is what you can do, install the latest Free version of the plugin. Then deactivate the PRO version and delete it from the dashboard -> plugins.

Download the latest 1.8.2 PRO version from here and install it from Plugins -> Add New -> Upload Plugin and choose the archive with the downloaded plugin.

It should fix it and you will have all of the filter sets untouched. Because without the Free version if you delete the PRO plugin all filters we get deleted.

Best Regards,
- Victor

Hello and Happy New Year , we are using our licences on dev websites none of these websites are live. The dev sites are searchdev.primelux.co.uk and we are testing this on dev.primelux.co.uk , it did not work , so we bought another licence .We have purchased a second licence today and it is not activating , ” invalid licence please enter correct licence key” You have been using this plugin for over two months without a licence, and it is now logged. Secondly please may we have permission to use the plugin on 5 of our websites , if the dev testing is successful. please help this is Super Urgent

Hi TROY3511

Thank you for choosing Filter Everything PRO. Happy New Year to you too!

If you are having an error that says “invalid license please enter correct license key” more likely you are using the CodeCanyon purchase code, instead of the license key. The instructions on how to get the license key you can find here – https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key

If you cannot deactivate some licenses on sites, you can send the license key and we can deactivate it for you across all of the sites.

If you have two licenses you can activate it on 4 sites, but there is no possibility to do it on 5 sites with two licenses. You can only deactivate on some sites, to use on another one.

Best Regards,
- Victor

Hello,

Thanks for your time.

I would like to know how can I hide options that dont have quantity. In this case you can see some gender empty https://dev.webiton.com.pt/togs/categoria-produto/colegios/colegios-boa-ventura-montessori-school/genero-unisex/ . The same happen with different context.

Thanks in advance.

Hi dmachado481

Thank you for choosing Filter Everything PRO.

From the filter set settings choose this option – https://prnt.sc/rr7ZKkkuk90s

Best Regards,
- Victor

Working Perfectly! What if it only have on option. Is it possible to disable that filter, since there is no option?

Regards

Yes, just turn on the Hide empty filters option a bit lower.

Best Regards,
- Victor

Hi I’m receiving an “Unknown error” when trying to activate my license on my staging site.

Please send the license key as well via PM.

Best Regards,
- Victor

The license is activated and everything is working.

Best Regards,
- Victor

Thank you

Hi! I have created a custom field with ACF. I have setup a custom field filter, with a dropdown widget. It works well, but when I leave the custom field empty (sometimes I don’t need to enter the value into the custom field), I get a return of items without the name from the custom field, but just the counter number of items that have nothing inside custom field. For example: 1. Product color: blue 2. Product color: red 3. Product color: (empty field)

What I get in return: Blue (1) Red(1) (1)

The filter sees the third item as empty and returns only the number. What I need is that when the custom filed is empty, nothing should be returned. Blue (1) Red (1) ... nothing else.

I hope you understand my issue. Hopefully, there is a solution. Thank you for a great plugin and your support! Teo

Hi sitemaster

Thank you for choosing Filter Everything PRO.

This can be done in two ways, first, use the include/exclude functionality for the needed filter, so you can exclude that empty term from appearing. Go to the filter set settings, choose the needed filter click “more options” and use include/exclude.

The second one is just to create an ACF field with checkboxes instead of a select, and you need to use use anything more.

About issues with ACF that might appear if you modify them, you can check here – https://filtereverything.pro/resources/acf/

Best Regards,
- Victor

Thank your for a quick reply! The first way didn’t work, because it doesn’t see an empty value. I can pick ‘blue’ and ‘red’ to include in filtering, but the empty value remains. The second way didn’t work at first, but I found a workaround. I hope with this solution it will work in the future. Thanks again!

Perhaps you should name the empty field as empty and then exclude the empty term. But we are glad to hear that you found the workaround.

Best Regards,
- Victor

Hello!

I purchased the PRO version of the filter set b/c it was the only way to have it work on a single page. After purchasing I spent some time testing it out and realized it will require a lot of custom code to get the filters to look and function exactly how i want. Do you have a refund policy for a purchase less than 24hrs old?

Thanks for understanding.

Cheers Todd

Hi Victor, hope you are well. When doing some recent test, I realized the Frame Color filter doesn’t filter anything at all and currently I can select more than one color at a time, which I don’t want. Ideally it would be able to filter by showing the largest frame size in the selected color (no need to display smaller frame sizes). I’m sure it has something to do with there being so many product variations, but I don’t know how to target the specific frames that it should filter. Any help would be greatly appreciated. I also want it to automatically switch between selections so only one color shows at a time. https://bergenandbedford.com/all-prints/

I’ve realized it may be due to my loop grid not being able to display variations of a product. So now to figure out a workaround.

Hi toddroneparker

We have checked the site, and the issue on this current page with colors is that all products have those colors, there are no products that’ll have different ones, like one is red and the second one white only.

As to the do not display the small frames filter, you always can go to the filter set, choose the needed filter, and click the “More options” where you can use include/exclude functionality in order to remove not needed terms from a filter.

With labels, you cannot change this behavior, so you can use radio buttons to choose only one color at a time.

Best Regards,
- Victor

Hello Dear, After setting seo rules they don’t work. For example settings for filter by Brand https://prnt.sc/NgeL8O519Z5R Also tried setting for a only one brand, but the same situation – the rule didn’t applied https://prnt.sc/HWoG4_sFN0FH

We have checked the site and the issue here is in this order plugin – https://prnt.sc/qDY1e8cl_q69 This is a typical issue, as more likely this code was written without WP standards. In general, this is the cause of the issue. We turned it off so you can see that the SEO Rules are working.

Best Regards,
- Victor

Thank you for your help! Then we will ask our programmer to solve this problem!

Yes, that sounds like a great idea.

Best Regards,
- Victor

Categories filter is a bit headache, if you have multiple subcategories, dropping them down is difficult. How can we increase the size or style of + and – for categories?

Hi achi1

You need to edit :before and :after elements in order to do it - https://prnt.sc/P6CSBqQe6GoC Use the browsing tools to inspect this element, copy the classes it usings, and add your custom CSS styles on it, from the Filters -> Settings -> Experimental -> Custom CSS


In general, there is no support for accounts whose support period has expired following the support policy.

But we can help you later after all requests from accounts with valid support periods are processed. It may take some time – days or weeks.

If you want to get it faster, please extend your support period and this request will be processed in the first queue for supported accounts.

Best Regards,
- Victor

Hi! How do I change the order in which categories are laid out on the frontend to filter?

For example, in Product > Categories they are organized in the following order for parent categories (which I would like on the frontend also): • Live • MP3s • Topic • Level

On the frontend it currently is ordered: • Level • Topic • Live • MP3s

Many thanks for your help! Alina

Hi Alina

You would need to write custom code, to sort it in the manual order using hook “wpc_terms_before_display” – https://filtereverything.pro/resources/hooks/#terms-before-display-hook

Or you can use sorting orders that you can choose from “more options” when you choose the needed filter from the filter set settings.

Best Regards,
- Victor

Thank you!

Hi Victor, There are a few things I’d like to do please, if you can point me in the right direction? I’ve selected a hierarchy to show (so Parent & Child in Taxonomies)

a) Is there a way to get these into a custom order? b) Is there a way to bold, or stylise the Parent categories in the filter, so it’s more obvious than just the + icon?

Thank you :-)

Hi caroline278

1) It would require writing custom code, to sort it in the manual order using hook “wpc_terms_before_display” – https://filtereverything.pro/resources/hooks/#terms-before-display-hook The sorting starts before the hierarchy view functionality. If after enabling the hierarchy, the order is not what you need, in that case, you can rewrite the checkboxes.php template to your own needs using the Templates Overriding – https://filtereverything.pro/resources/templates-overriding/

2) You can apply CSS manually as each of them has their own ID – https://prnt.sc/kwt7YSRuq4HR So you can check it all using browsing tools, and find the needed ones.

Best Regards,
- Victor

Hello, when i set Ajax for filter the counters works fine on the sidebar but the results are not accurate: the desidered results are ordered at top but, after that, all products are displayed. https://nordcaravan.it/camper/categoria-usato/ I deactivated infinite scroll on kadence engine. Thank you

Hi Funkwarrior

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

Also, send step-by-step instructions on how we can recreate the issue.

Best Regards,
- Victor

Hi Victor, thank you for your support but, after a few tries, I managed to make it work correctly. I first deactivated the shop page which I don’t need instead of hide it (i think caused problems with canonical url) and also set correctly the post container tag in the settings tab. I also removed the custom one in the filter set (which I set wrong) . Maybe is better to improve the description in the Post Container html id setting telling is overriding the main one? Also I have improved a little the italian language .mo file available here: https://drive.google.com/drive/folders/1KhK61HZkL35Z_oOdibwkjzmil0WfTJdw?usp=sharing Thank you again, great plugin and great support.

Hi Funkwarrior

We are glad to the that the issue was resolved. You did an amazing job!

Also, thank you so much for updating the Italian localization. We appreciate your hard work and effort on it.

Best Regards,
- Victor

Similar to the issue with incorrect pagination (https://codecanyon.net/comments/30334382), filtered results still include the WooCommerce “Showing x of y results” statement, which is of course completely incorrect. There must be a filter hook that can be used to update this statement for filtered results

Hi fireflywebz

Thank you for choosing Filter Everything PRO.

If you are having the same issue we have the same instructions.

If you are using the AJAX filter, you can find information on which container to choose here – https://filtereverything.pro/resources/plugin-settings/

In short, it should be a container that has inside pagination and products, in order to update both with AJAX.

Best Regards,
- Victor

WooCommerce pagination not updated

I am having the same problem described earlier today by user rickaahz, specifically that pagination persists even after filtered results are loaded and the need for pagination has changed. This would be extremely confusing to visitors, so naturally, I cannot use the plugin in production until the problem is fixed.

You are welcome to view the problem on my staging site here: https://oneearthstage.wpengine.com/store

Hi fireflywebz

The answer was presented in this comment thread – https://codecanyon.net/comments/30334400 please let’s continue the conversation there in order to remove any confusion.

Best Regards,
- Victor

I am using your filter on a page that has sticky posts displayed on the initial query at the top of the listing. These are custom posts, and because WordPress does not natively allow sticky posts for custom posts, I was able to add that functionality and they are sticky. However, WordPress also doesn’t natively allow sticky posts on a non-home page. Again, I was able to create a pre_get_posts function to enable this to happen.

However, on the listing page that uses Filter Everything, the filter search results do not work properly if my query includes the argument (‘wpse_is_home’ => true) which allows the sticky posts to work.

How can I get the Filter Everything search filters work correctly in this scenario?

Note: the filters work great in a template without sticky posts so I know that the plugin is working on the site. It just doesn’t work with the sticky posts in the above-mentioned set-up.

Thank you for your support.

Hi sherriatwmi

Thank you for choosing Filter Everything PRO.

Unfortunately, we cannot help here much. We cannot debug custom codes that were written for this or that functionality, or make them work with our plugin, as this is all out of the scope of support policy here on CodeCanyon.

From our memory, there were some clients who were utilizing a plugin for sticky posts that should always be at the top of the other posts, and it was working well. But we do not have the name of this plugin. We would recommend checking plugins for that.

Best Regards,
- Victor

Hello,

I’ve just puchased this plugin. Looks very good and works quite well. I’ve found out one problem untill now. I’ve set a product filter which should be on all pages with categories. I’ve tried 2 settings for „where to filter“: 1. Product categories + Any category 2. Common WordPress pages + All archive pagesfor this Post Type Both work the same for me: - OK on the desktop (No filter on the Homepage, filter displayed on pages with categories, no filter on product page and other pages) - On the mobile device – the filter button is displayed on the homepage too, but it’s not possible to click on it / it doesnt work. Other pages are same as on desktop and works OK. Questions: 1. Is it possible to make work the filter button on the mobile device only (stay hidden on the desktop)? 2. Is it possible to place working filter button on both homepages desktop and mobile device. (not a fully displayed filtering as on desktop but the button as it is on mobiles)? 3. Is it possible to hide the filter button on the mobile device? My page where you can see the actual setting is www.joe-parts.cz

Thank you for your support Magdalena

Hi Magdalena

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

Also, please send the link to the pages where you don’t want to display the mobile filter button.

Best Regards,
- Victor

Hello Victor, I’ve sent the credentials by PM. Best Regards, Magdalena

We have checked the site and added just ta simple CSS in the Customize -> Advanced CSS:

@media screen and (max-width: 768px) {
    .page-id-60 .wpc-filters-open-button-container,
    .page-id-18 .wpc-filters-open-button-container,
    .page-id-20 .wpc-filters-open-button-container,
    .page-id-122 .wpc-filters-open-button-container,
    .page-id-14 .wpc-filters-open-button-container {
        display: none !important;
    }
}

So it won’t display a mobile button on those pages. If you add more pages, you simply can add their ID to the CSS in order to hide it there as well.

The 1. option is not possible as those pages do not have anything to filter. The second option we already added how to hide it. If you need to hide on specific category you can use term-number – https://prnt.sc/0-jXBlozJBfV so instead of the .page-id-14 add .term-10 .wpc-filters-open-button-container

Best Regards,
- Victor

Please help, urgent.

In the free version: “Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in /srv/htdocs/wp-content/plugins/filter-everything/src/Settings/Container.php on line 163.”

I bought your PRO version and got errors:

“Upload problem: json_syntax.” “An error occurred while installing the plugin.”

Hello lucasewall.

I’m sorry for the inconvenience. It seems you use the latest PHP version, but we planned to add its support in the next update.

Please, write me message in PM with your site address and I will help you to solve the issue.

Thank you. Regards.

https://b138v02.myraidbox.de/wp-admin/

Hi, the Plugin was janky when I started using it, but I managed to get it to work in parts. Even when it worked, it didn’t show all the ACF filters that were selected, only a few. When I created some extra dummy projects, the whole plugin broke down and is now only showing one filter (without me changing anything in the plugin settings themself). I exchanged the real content with dummy content so it is easier for you to see whas happening.

Hi bora-bora

Thank you for choosing Filter Everything PRO.

The issue here is how you created those fields. First, you have created a group in the ACF field, and you should add all your custom fields there. But instead, you created another group there, with its meta key, and in that group created sub-fields.

What you should do is just create a new ACF group, and add all of the needed custom fields there, instead of creating inside another group with sub-fields.

Also if you are planning to use the same names for the new custom field please read this page about what type of issues you might get – https://filtereverything.pro/resources/acf/

Best Regards,
- Victor

Hi victor, thanks for the info, now it works. Follow-up question: the customer wants to use the filter as kind of a guided path to find the right organisation in one of two different areas. Some orgs offer only one area, some both. the first filter asks for a decision between the two general areas. the next filters should only show up if the right area was selected in the first filter. At the moment it still shows filter options for the area that was not selected in the first place. (which makes sense because some orgs offer both). Is there a way to also hide children filters if a certain option was selected in the parent filter?

There are no options that you can choose in order to display a certain filter, depending on which filter term is chosen in the parent one.

The only thing that’s available is to hide the filter until you choose any term in the parent.

The closest thing you can do is use “AND” logic for the parent filter, you can change it from the “more options” on the needed filter. And choose to hide empty filters and hide empty terms “always hide”

Best Regards,
- Victor

Hi there,

When I filter my product category page, the pagination is still showed. So for example, when I filter the view with a filter that shows 6 results. I can still click the pagination to go to other pages that don’t show the product with the selected terms.

Ideally when I filter the overview, I only want to view the products with that specific term (in my case a custom field).

Any ideas on how to fix this?

Hi rickaahz

If you are using the AJAX filter, you can find information on which container to choose here – https://filtereverything.pro/resources/plugin-settings/

In short, it should be a container that has inside pagination and products, in order to update both with AJAX.

Best Regards,
- Victor

Hi Victor, thanks for the reply. This helped, thanks.

We are glad to hear that everything is working.

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