Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,666 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8955 comments found.

I’ve started setting up filter sets. I’m using it for selling Laptops on woocommerce. I want to have a filter to give the following options to the users:

Screen Size

  • 10inch and below
  • 11inch to 13inch
  • 14inch to 16inch
  • 17inch and above

What’s the best way to do it? I have the screen size attribute for my products.

Hello mohsengh

Thank you for purchasing the plugin.

In genral it is something out from the item suppott scope here on CodeCanyon because it requires to solve some development task and to make additional coding. But I can give you advice how to implement this:

1) You have to create range filter by this attribute (it is numeric as I understand) and create your own template for this attribute.

2) With hook ‘wpc_view_include_filename’ you can inlcude this custom template for your filter by screen size. The hook is located in the /wp-content/plugins/filter-everything-pro/src/Admin/Widgets/FiltersWidget.php file.

3) You can use next code example to get current selected filter terms and to build URL for these filters. Also you can add in the $filters array your predefined filters by Screen size and values From and To.
if( class_exists( 'FilterEverything\Filter\UrlManager' ) ){
    $urlManager = new \FilterEverything\Filter\UrlManager();
    $filters = flrt_selected_filter_terms();
    if( $filters ){
        $selected_filters_link = $urlManager->getFiltersUrl( $filters );
        var_dump( $selected_filters_link );
    }
}

4) When you will have these links, you can display them in the list and they will be dynamically changed in accordance with selected filters.

There is only one simple step left – to write the code for all of this :-)

Hello,

I display the filters on my “news” page but when I click on a label, the articles only update to display one article.

Hello mt-studio

Please, provide me with link to the page with this problem and let me know details how to reproduce the issue. Optionally you can send me it via PM.

Hello, I’ve purchased the filter and I try to create multiple and different Category filters. I’ve created one file that include only some categories. Now I want to create a second filter type for some other categories (using include/exclude functions in the plugin settings) but “Categories” is now greyed out. How can I do this ? It’s not explicated anywhere I fear. Thanks a lot !

Hello yannphilippe

Thank you for purchasing the plugin.

It is not possible for the moment yet to add two or more filters by the same entity in one Filter Set. But you can use a trick – to create two or more Filter Sets and poin them to the same page. On this page you have to insert several Filter widgets – one per FIlter Set. And you can add Category filter to every Filter Set. But important to know that all these Category filters should have the same logic value to avoid conflicts between each other.

Hello and thanks for your answer. I tried to create a second filter set, assigned it to the same type of posts (Articles) and pointed to the same page. When I put a second Filter widget in the sidebar, indeed it shows now my second filter set aswell. The thing is that I have some “Color” categories like : red, blue, pink, yellow, etc. And I have some “Year” categories : 1998, 1999, 2000, 2001, etc. I want to be able to select like multiple Color (i.e. : show all the pink and red posts) but only the ones from 1999. When I select pink / reds / 1999 in my 2 different filters set, the plugin now displays : all the pink and all the red articles but from all the years available, not the one selected. It’s like every filter set works alone but not in cunjunction with others. Maybe I forget to set something…

Hello yannphilippe

The best way to check if the filtering works correctly is to install Query Monitor plugin and find the SQL query of the filtered products. The query contains string ”/* Current SQL Query is filtered by Filter Everything plugin */” and you can easily find it. Please, put here this SQL query or send if via PM and write here comment about that.

Hi there, I have some questions before I buy this. I have a car parts website and I need to filter by make/model/year/motors. If I select BMW from the make filter, the model will only show the models for BMWs and not from any other makes. Is this possible with you filter? Thanks!

Hi there, I can’t figure this out :( I have an idea of how I want it to display but there’s no way for me to show you.

Hi again! Yet another question :) When I filter by make model year, all other filters like categories filter, brand filters dissapear. Why is that? Thanks!

Hi mgmarceau

If your other filters disappear it seems you activated option “Hide empty filter” and when you select a make model year value you gets products that have no intersections with filters that disappear. Try to experiment with disabled “Hide empty filter” value.

You can leave review in your Downloads section https://codecanyon.net/downloads directly in the items you purchased. Please, see example – https://prnt.sc/msWALzZGlzmZ

Hi there. How can reduce the spacing between the filter ‘Title’ (e.g. “Difficulty”), and the filter ‘Options’ please (e.g. “Easy”/”Medium”/”Hard”)?

At the moment there’s quite a large space between each filter title and the options a user can select to filter on

Hi greggunewardena

Thank you for purchasing the plugin.

Usually it depends from your theme or plugin CSS used on your site. You have to add additional CSS that reduces title’s bottom margin or padding or other CSS rules that creates this space.

In general it is not supported issue as it depends from 3rd party software (your theme or plugins), but if you will provide me with link to the page with this problem I can give you adcive how to reduce it. Optionally you can send it via PM.

hello, i want using filter for users list in frontend

Hello gokhanluleci

Thank you for your interest in Filter Everything PRO.

Pay attention that the plugin filters posts/products/post types, but not WordPress users.

Hello,

I am using a PRO version of the plugin, and I am having some issues when displaying filter values. I think I configured the plugin correctly, setting the right Post Type to one I need to filter, as well as filter parameters to match custom fileds metadata. Error on the Frontend says: There are no terms yet. I am also working with Oxygen builder and trying to intergrade Filter Set into a template with a repeater block. Before I changed the settings for where I want to display the Filter Set, values for each filter where display numbericly, meaning, values were numbers but should’ve been text format? Could you please assist?

Hello inesdarrer997

Thank you for using PRO version. Please, write your support request from the account, where you purchased the plugin.

Hi, i have a presale question: dose this plugin work with WP Job Manager plugin ? i mean can i customize WP Job Manager search filter with it and add new fields and taxonomies ? and dose it work similar to this plugin Search and Filtering for WP Job Manager https://plugins.smyl.es/wp-job-manager-search-and-filtering ?

Hi Amr—ahmed

Thank you for your interest in Filter Everything PRO.

As WP Job Manager plugin uses custom post type for its jobs and custom fields to store meta information about these jobs, you can filter them with Filter Everything PRO plugin.

But with my plugin you can only create separate filter system, but not to extend existing WP Job Search built-in fitlers as they work by own algorhytm. My filters work similar, but for the moment they do not support filtering by geolocation.

so dose the separate filter system you mentioned will give me the same result as smyles wp job manager search and filtering ? and if i added any future custom fields to job templates will i be able to add it to the filter system created by your plugin ? and i don’t really care about geolocation but if i created set of custom job location can i search jobs using these locations ?

Hi Amr—ahmed

I can not say about WP Job Manager because I didn’t use it before. But I can definitely tell you that my plugin supports filtering by Custom Fields and it supports fields used in WP Job Manager and if you will add new Custom Fields you will also be able to create fitlers by them.

this plugin have horizontol filters

Hello semhninja

Thank you for your interest in Filter Everything PRO.

In general it does not contain such option out of the box, but I can provide you with small CSS snippet that makes filters horizontally. Here is live example how it works for my other customer – https://www.auslandsjob.de/jobs/job_type-vollzeit/job_filter_country-europa/

SEO rules are only working on the shop page. I created 2 filter sets. 1 for shop and 1 for all the product categories available. Filters are showing. then i create seo rules like: “…/categorie-{any}”. This rule only works on the shop page. when i go to a link like ”/product-categorie/kamerplanten/categorie-makkelijke-kamerplanten/” no show while ”/shop/categorie-makkelijke-kamerplanten/” does work???

Hello eaonflux

Thank you for purchasing the plugin.

Pay attention that for Shop page and for Product category pages you have to use different SEO Rules. The SEO Rule for Product category pages should contain Product category as “Page archive for” As I see from your SEO Rule for the Shop page you marked Product Category as Indexed filter and it can not be used for both simulteneously. It means to use for Product category pages you have to disable Product category from indexed filters.

Let me know, if it was helpful for you.

Dude you the best that did the trick. Now my shop and product-cat archives showing the SEo rules

Great. I’m glad that your problem was solved :-)

Hello, as soon as I activate the plug in on my e-commerce site, all the links become defective, please correct it.

Hello flashprotec30

Please, send me credentials to your /wp-admin in accordance with this document and details about the problem I will check it myself.

Thank you.

Hi. I bought the Pro version and am satisfied. However, I have a problem with the h1 seo rule for wordpress posts. I can’t get any further with your documentation.

I work with generatepress and wp show posts. What do I have to insert where? Which code do I need and where do I use it. functional. php?

I created a normal page and display all posts with wp show posts. Category filtering and seo rules work for the URL and meta title.

The only thing he doesn’t change is the h1 title.

i really need help I’ve been trying to do this for 2 days, but I can’t.

Do I need to put some code in the function.php file? If yes, which one?

Do I need to create a hook in generatepress? If so, what do I need to enter for a php statement?

I can’t get any further with your seo rule documentation.

Thanks for your support.

Bernd

Problem solved.

Hello luckybernd27

Thank you for using Filter Everything PRO.

I’m glad that your problem was solved and thank you for your notice about that.

How exactly does this apply to Divi Theme?

I’m using divi theme and the filter is not filtering anything

My config is Divi templates with acf data from acf groups, and i want the filter to filter columns that has those filters

Hello tonyrodrigues7897

Thank you for purchasing the plugin.

You have to configure filters in accordance with meta keys of your posts or products. I recommend you to look on this page in documentation to understand how to configure filters and Filter Set. Also I recommend you to make sure what exaclty meta keys you use and to pay attention that ACF fields in ACF groups have specific meta keys in accordance with groups where they are stored. Please see this comment that explains about ACF groups – https://codecanyon.net/comments/28825103

Unfortunately CodeCanyon items support does not cover installation configuring problems and it expects that you are enough familiar with WordPress to be able to use an item and configure it using documentation.

I hope this will help you to solve the issue.

I really like this product and want to upgrade to pro. Before I do I’m using Astra theme, elementor and shopengine (all pro). All I need to know is does the pro option of your product allow ACF filter fields in shop engine. Basically I want to either sort or filter by (book) author, title, isbn etc e.g. custom fields. At this stage with the free version I can’t see how to achieve this.

Cheers Terry

Hi Terry

Thank you for your interest in Filter Everything PRO.

Yes, my plugin supports filtering by ACF and author fields, but it does not support filtering by post title. Usually it is not needed.

Hey there, purchased the pro version and the “Taxonomy Filters” are working finde. The only thing i can’t get work is filters based on ACF custom fields. I double checked all the required things: - added a custom field “mileage” (type=numeric) - all entries of custom post types have a numeric value stored in this field - doublechecked phpmyadmin. values are numeric only. metakey is “mileage”

Range slider is still not working and showing 0-0.

Hi alexandra_lovin

Thank you for your credentials.

I checked your site and realized that it was bug in my plugin related with that fact, that you use WPML, but your car listings are not translatable post type. I fixed this bug and now it works fine. In the future just update the plugin, when new version will be available.

Sorry for the inconvenience.

Hi Stepasyuk, works like a charm! Thanks.

Hi alexandra_lovin

I’m glad that your problem is already 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!

Hello Stepasyuk,

Seems this has been asked before, but I couldn’t find an answer. I’m using Kadence Theme PRO with Shop Kit. The filters, created with a short code, are not applied on the Kadence Archive: Main Query widget in Gutenberg.

What query widgets are supported or what else can I do to make it filter. Many thanks and have a great day.

Hi Stepasyuk, I send you a PM with the details Thanks for checking

Hi tukinu

Thank you for your credentials. I checked you site shop page and it seem now filter works as expected. If you have problems on another pages, please provide me with link to such a page.

Hi Stepasyuk,

Thanks for checking, It doesn’t work with a custom shop page done in ShopKit with the Archive Widget but I use now the standard Kadence shop page and there it works as expected.

Best regards Notarmon

Hello,

I am using Filter Everything to filter the price, among others.

The problem is that the price is filtered without the tax.

Settings on my woocommerce are that i insert the prices without tax, and they are being displayed with tax.

I Also would like to add a suffix of the price symbol (€) next to the price.

Thank you!

Hello lioncode

Thank you for your message.

I’ve sent you link to the plugin version that contains hooks that allow you to modify range filter values.

Here is example how to add support for prices with taxes https://gist.github.com/wpserve/58ab776bb54d6555b4d65b48c7a52f46In your case it may require editing code with your taxes value and taxes formula. This may require to ask a developer to help you with this because custom coding is not provided under CodeCanyon item support policy.

Hello Stepasyuk the github link is not working. Can you please provide a working one? Thank you.

I’m sorry, this is correct link – https://gist.github.com/wpserve/58ab776bb54d6555b4d65b48c7a52f46 – without two extra letters in the end

Hello, I would like to know how the filter behaves when there are sub-categories in categories, and within them other sub-sub-categories, do you have any online example where I can see this?

Thanks in advance!

Hello LeandroDyD

Thank you for your interest in Filter Everything PRO.

I’m not sure what exactly behaviour you are interested in, but here is example of filtering in Category with sub-categories – https://demo.filtereverything.pro/category/health/

If you opens a Category page, you will see that it is checked by default in the category filter. And you can select sub-categories and posts will be filtered in accordance with the selected sub-category.

I hope this will be helpful for you.

Hello! Is your plugin compatible with the WP Astra theme?

Привіт gigamarket24

Дякую за інтерес до Filtter Everything PRO. Надалі продовжу англійською, щоб всім було зрозуміло.

Sure, it is compatible with this theme. Moreover it is compatible with 99% of WordPress themes and on some of them (for example Themify themes) only the AJAX feature may not work properly.

Спасибо за ваш ответ! Жауабыңыз үшін рахмет! Дальше продолжу на английском, чтобы все поняли. Thank you for your reply!

Hello, on this page https://hanak-brno.cz/vyprodej/ we have wrong items count in filters, for example Black Friday (3) but there are 77 items. Filtering is OK but item counts is not correct. Tried to reset filters but didnt help. Can you help please? thanks Olaf

Hello anoagency

Thank you for extending support period.

I checked your site many times and I have to say that there is no bug in the plugin. But usually problem is that you have selected wrong WP_Query or you use the same Filter Set for your Shop page and for your Product Category pages, but they have different templates and different Product modules that require different Filter Sets.

As conclusion this problem is consequence of wrong settings and I recommend you to follow an important rule – each unique Product module (e.g. Elementor Posts module or Elementor Products module) must have its own Filter Set.

Hello again, Stepasyuk, the problem is that we using third party plugin for synchronization the database.

The filter does not contain all brands with promotional products, resetting the parameter does not change anything, but manually re-save the filter does. What else is happening in the background when manually re-save the filter… If I search the database for all transients with the code “wpc” and delete them, and reload the Sale page, then … nothing changes. Transients are newly installed, but the filter is still faulty. And the reset link ?reset_filter_cache does exactly the same thing, it just deletes the transients. When I call it, it fries transients, starts fresh ones, but the filter is faulty. When I save the filter, the same reset function is also called, but I guess there’s something else going on in the background … and the filter regenerates correctly this time, and suddenly the correct brands are there.

It would be very helpfull If we knew how to be able to correctly reset the filter everytime we synchronize database.

Thanks a lot, SLAVA UKRAINE Olaf

Hello anoagency. Heroiam slava!

I suspect that when you save Filter Set (or any other post) something happens with your other plugins. Because when you save a Filter Set Filter Everything’s code just fires the same function that it fires when you reset the cache with ?reset_filters_cache=true parameter. (Be careful it is reset_filterS_cache not reset_filter_cache)

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