Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,723 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8979 comments found.

Hello and thank you for your plugin. I try to have the same filter set always be visible in the header. Under “Where to Filter” I can only choose one place. Is there a way to have my filter always be visible and on every page & subpage without creating multible sets? Hope you can help. Best regards, Tom.

Ok, Thank you!

Forgot to thank you. Thank You :)

Hi Tom.

The best “thank you” for the plugin author is a positive review here – https://codecanyon.net/item/filter-everything-wordpress-woocommerce-filter/reviews/31634508 :-)

I would be very happy to receive it from you :-)

Hello

Could you please check on this page: https://scpedia.net/programes/

Why do the filters not work? (Pay attention to the link, it does not change)

Thank you

Hello Marmonil

Thank you for using the plugin.

Please, set correct value for the “CSS id or class of the Posts Container” option. You have to set it .av-8krcs-44d39b0b2f71162f8b972902f10e52b9 with ”.” as first character.

Let me know if it was helpful for you.

Yes, it works, but how does that? I don’t have any idea what this class means

I also do not know why your posts container has such CSS class. But it has – https://prnt.sc/yFeQ3_m6sAMz and that’s why you have set exactly such value :-)

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! I’m making an online store and I need to implement one feature and I hope for your help.

I have a custom post type “Composers” which has custom fields like “date of birth”. In products i use relationship between product and composer. How can I get a custom field “date of birth” in products so that I can filter products by this field?

Hello gworksoy1

Unfortunately you can only use Custom Fields directly related to your posts. If they related with your Composers you can only filter Composers by this field.

As option you can only copy field values from Composers to Products and sync them everytime, when they are changed in Composers. It seems there is no another way to filter Products by “date of birth”.

Hei, Thanks for the answer.

One thing I noticed is that if on the product page i select composer in relationship field, and I display this field in the filter, then on the products page in the filter field, the composer’s ID is displayed. Is it possible to make it so that the composer’s title is displayed in the filter field, and not the id?

Hello gworksoy1

If you use Custom Field filter you can consider this code created for ACF post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56 Probably you have to modify the code with your Custom Field name (meta key) but in general idea is simple – if you have post ID it is easy to convert it to post title.

I’ve got Filter Everything set up in Elementor btw

Hello R3nderBoy

Thank you for using Filter Everything PRO.

If you mean search field for filter terms like this – https://prnt.sc/bwOLTeacaC0g you can enable it under More options section in the filter settings. It is checkbox called “Search field” https://prnt.sc/3cAuFZb4XjJK

Hello,

I have been using this plugin for a few months now. Just a week ago I have issues with one of the dropdown box that contain number. This dropdown box contain the number from 1 – 100+ depending on what our custom field has been filled in. I have set this dropdown sort by in Term name <abc>. The first number from 1 – 6 is fine and 7 & 8 is jumped to the bottom and placed it after 10. I have checked with my datapoint that are filled into the custom field. They all are filled in correct format.

I am not sure if this is the problem by the plugin because I can’t seem to find the issues that is causing this.

I also tried the other way round by sorting it with Term name <cba> same thing happened the number jump in between, instead of going accordinly.

I have sent you the screenshot and sent you the link of that specific page via your PM.

Hello tbs_marketing

It looks like you have cached filter terms. Please, try to disable all caches on your site and open it by the URL with ?reset_filters_cache=true parameter. This should reset fitler terms cache.

For example your site URL is https://example.com. You have to open it as https://example.com/?reset_filters_cache=true

Hello. I am using the license key on my dev an live site. My license is no longer working and the features are locked so I can not edit the filter. How can I fix this?

Hello hearts89

Thank you for using 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.

Hi, child terms in the category filter are collapsed by default but I need it to be opened by default. I have seen that another user asked the same thing and you answered that this code would solve the problem. add_filter( ‘wpc_hierarchy_opened’, ‘my_hierarchy_filters_opened_by_default’ ); function my_hierarchy_filters_opened_by_default( $filters_opened_by_default ) { $new_opened_by_default = [ 3250, // Filter ID (filter post id) ]; return array_merge( $filters_opened_by_default, $new_opened_by_default ); }

I implemented the code but it doesn’t work.

How can I solve that.?

Regards,

Hi starlightcorp

The code I provided you above should make all your categeories that have children categories opened by default. But you have to check this in incognito browser tab because in your regular browser you already opened/closed categories and their last status was remembered by the plugin.

Hi Stepasyuk Ok, but what I want is that all the filters that I have in different languages are open. The code you sent me is only for a single filter

Hi starlightcorp

You have to get IDs of all desired filters and add them in the array in the code that make categories opened by default. For example:

...
$new_opened_by_default = [ 
3250, // Filter ID (filter post id) 
3252, // Filter ID 
3257, // Filter ID and so on
];
...

I just purchased the pro version of Filter Everything and am quite pleased with it! I’m running into one slight issue. I have AJAX enabled, and the filtering is working fine, but after a filter engages, my posts area stretches to maximum height, adding a large pad between the bottom of the post thumbnail and the rest of the post info. If I refresh the page, the extra pad disappears, and as soon as I engage or disengage a filter, the pad reappears. I’m using Elementor Pro. I’ll PM a link to the webpage.

Hello andpaulrich

Thank you for using Filter Everything PRO.

I have to say that it is common problem related with using AJAX because height of your post thumbnails is handled by JavaScript code that fires only when your page is loaded. After AJAX loads new posts this JavaScript code should be fired again to set correct thumbnails height.

You can try to fire this code by yourself attached it to the JavaScript trigger jQuery(document).trigger("ready"); Here are more details about that – https://filtereverything.pro/resources/ajax-related-problems/

If you are not familiar with JavaScript you have to ask a developer to help you. Unfortunatley such issues are not covered by the CodeCanyon item support scope.

I see that the Pro version of your Filter Everything plugin works with Elementor. But, would it work for WooCommerce products with ACF custom fields if the products are being displayed using the Woo Product Grid element in the Essential Addons plugin?

Hello colorpage

Thank you for your interest in Filter Everything PRO.

Yes, I confirm that it is possible to filter products with FIlter Everything PRO created with plugins you mentioned.

Hello, is there a way to integrate the filters in the Search page of result of the site?

Hello stephvasko

Thank you for purchasing the plugin.

Yes, sure. It is possible. Please, select “Common WordPress pages -> All archive pages for this Post Type” in the “Where to filter?” field of your Filter Set and place Filters widget in the widget area on the Search Results page.

Hi,

you asked me to write you here, I had contacted you on WordPress.org https://wordpress.org/support/topic/filter-doesnt-work-if-i-click-the-checkbox/

Something strange is happening. If you click on the name of the car (instead of the square) then the engine searches and returns the results, if I reload on another, same thing. If I try to select the checkboxes and then update the search returns to the same page and does not give me errors in the console. I have received in the past only one mixed content error due to https but that I have already fixed

I will send you in DM the accesses and the link staging where the cited problem occurs.

Hi giuseppedichiara

Thank you for using Filter Everything PRO.

I checked your site and realized that you have conflict with 3rd party plugins or JS code that turned off Filter Everything events. I’ve sent your email with details about this issue.

Hi,

I need help with my filter. Every time I use it, it refreshes the page and goes to the top of the page. Can I install it in a way that it either doesn’t refresh or it immediately drops down to the filter results?

The page I need help with: https://www.jbbassets.com/our-inventory/

Thank you

On top of this, I’m also wondering if I can do any pre-filling on the filter? So basically I want to create a filter for each “type”, so they click on a icon of a excavator and go to the pre-filled filter where only excavators are visible.

Hi luukspecht

Thank you for using the plugin.

There are two ways to solve your problem:

1) To enable and use AJAX feature (Filters -> Settings -> AJAX) To do it you also have to set CSS id or class of the Posts Container in your case it should be .elementor-element-7ade895 But you also use Lazy load images and this may not work.

2) To add to your filtering result page URLs an anchor that always scroll user to your posts container. In this case you have set ID attribute to your posts container via Elementor and to add in the functions.php of your active theme next code
add_filter( 'wpc_filter_term_url', 'wpc_filters_url_ending', 20 );
function wpc_filters_url_ending( $url ){
    return $url . '#mypostscontainer';
}

Where mypostscontainer is container id.

Hi,

We have an archive page of products (post type) where we have many filters. Everything seems to be working until we start using pagination. We have filtered and reached page 3:

https://hittebescherming.testpreview.nl/assortiment/bescherming-hoofdbescherming-or-voetbescherming/pagina/3/ Then we click something different (any categorie) and we get something like this: https://hittebescherming.testpreview.nl/assortiment/pagina/3/categorie-hittewerende-pbms/bescherming-hoofdbescherming-or-voetbescherming/

Pagina/3/ has moved up the url, breaking every request from that point. We checked your demo https://demo.filtereverything.pro/example/dark-overlay-and-ajax-loader/ and there it resets the page param everytime a filter value is clicked.

What are we missing?

Basic start: https://hittebescherming.testpreview.nl/assortiment/

Hi pimkaptein

Thank you for using Filter Everything PRO.

The main problem is that your site uses non-standard URL slug for pagination – “pagina” instad of classic “page”. And to solve this problem you have to change your pagination system/pagination code or to change Filter Everything plugin code. I think that to change word “pagina” to “page” will be easier, faster and more universal solution.

Hi!

Loving the plugin. I’m testing it on one page at the moment and I’m trying to use ajax for filters but it doesn’t seem to work.

I have given the Post Container an ID but the results appear blank. Could you give us a hand or point us in the right direction, please?

I’ll send you a PM with the website’s link.

Thanks!

Hi martingfisher

Thank you for using the plugin.

Filtering works if you open filter results page by direct link. And AJAX also loads new filtered products. But you use Masonry Isotope script that does not fire after AJAX loaded products and that’s why they stay hidden.

In common details this problem is described here in this article – https://filtereverything.pro/resources/ajax-related-problems/ You have to re-init your Isotope script after AJAX loaded products or ask a JS developer to help you. Or finally to decide what would be better to disable – AJAX or Isotope if you are not able to fix this problem by yourself. Unfortunately such issues are not covered by the CodeCanyon item support.

Hello,

I still see in filter term ID, not name.

I tried this function but doesnt work: 3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56

ACF field is post object with ACF name: ponuka_krajina This ACF field is in filter with key name: krajina

I tried both names in function, but doesnt work.

Hello mattiesk

Thank you for purchasing the plugin.

If you need to display ACF field labels instead of values, you can add to the functions.php of your active theme appropriate code from examples below. You also have to edit this code in accordance with your ACF field meta key(s). Here are these codes:
1. ACF field is Taxonomy object – https://gist.github.com/wpserve/0634299bcc67d03bef77119dd20c86e7
2. ACF field is field with choices – https://gist.github.com/wpserve/48277fc0320239d05b1d6e2c4da3db20
3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56
I hope this will help you.

Hi. I’m trying to use Filter Everything for a custom post type using Divi. I have created a page where the posts are listed and created a couple of filters for the posts.

You can see the page here: https://staging.ifamagazine.com/open-offers/

At the moment I have two filters setup, one for a text field and the other on a numeric one. The numeric range seems to work and if the range is changed the list of posts updates, but when any checkbox is ticked on text field filter the list of posts comes back with no results.

Update: I’ve now added a few more filters and most of them seem to be having some problems, most noticable is that when selecting a checkbox option to filter posts, the incorrect number of posts is shown.

This is looking like a database issue to me. I have re-created the custom posts and filters with new names and the plugins are working together perfectly.

Hello glasshalfpool

Thank you for using the plugin.

Indeed, this is known issue and some of the plugin users face it. But I’m glad that you were able to solve it by yourself. Most of users are not so experienced in WordPress :-)

Please, let me know if you will have any questions.

BIG PROBLEM!

If I have a filter set with 10 filters inside, all indexable, I have a lot of complexity to write all the seo rules.

I’ll explain.

If I have: Brand, Color, Category, Display Size, Wifi, Operating System.

And I want for each combination of filters to automatically generate the title, the h1 etc. I have to insert many seo rules.

I’ll have to insert a seo rule with “any brand”, then another rule with “any color” etc This is for all filters.

Then I will have to insert a rule for each pair “any brand” and “any color” “any display size and “any colors” and so on for all combinations.

Then I’ll have to enter the combinations with three filters etc.

In short, an impossible job to do.

Is there a faster way?

Hello goldfuturesrl

SEO Rules were designed in Filter Everything PRO based on the fact that search queries in Google contain maximum 2-3 keywords and that’s why 95% of useful SEO Rules may contain 2-3 filters maximum. People do not search by phrased like “Buy white Apple smartphone with 6,7 inch screen supporting Wi Fi and with iOS” but rather “Buy Apple Iphone” or “Buy Iphone 14 Pro Max”. So there is no need to create SEO Rules for all 10 filters, but only for different combinations with 2-3 filters. And the single Rule with 3 filters with Any values covers all possible combinations with these filters.

So there is no any other way than manually create all desired SEO Rules.

Hello,

I have a problem with the mobile version, everythings works perfect in desktop version but in mobile nothing works, no buttons (same filters from desktop but not working in mobile)

As i see in the inspect all the fields are display:none like it does not recognize the mobile version of the website.

My website has custom theme and i use the shortce <?php echo do_shortcode(‘[fe_widget]’); ?> to display my filters without a widget… but i tried with a widget too and nothing changes…

Is there a fix ?

Hello stepasyuk, thank you for your help, indeed i ve made a mistake with the body classes there, thank you again

But the button is fixed as you said but after the changes you ve made now the filters dont work etc on icognito but only when a admin is logged in…

UPDATE * PROBLEM SOLVED, thank you again everything works perfect!

Hello lefkatsaros

I’m glad that your problem is already solved :-)

Hi, where is the function provided to Riceman for specify a filter to be shown if a Specific Choice in that Parent Filter is made (but be hidden if any other choices in that Parent Filter are made)? Thanks!

Can you explain a bit how to use the hook ‘wpc_view_include_filename’?

?

Hi tinbob

Thank you for using the plugin.

I answered to Riceman here in this comment – https://codecanyon.net/comments/28549579 but I did not write him any code as this is not included in the CodeCanyon item support policy.

In general if you look on the code
apply_filters( 'wpc_view_include_filename', $filter['view'], $filter, $set ),

you will see that it pass through itself filter template filename and you can manipulate with this filename to replace original template with your own. To understand how it works you have to look inside includeFrontView(); method.

FYI – questions from user which support period expired have lowest priority in queue, so if you need to get support faster, please extend your support period.

Hi there, the project was put on hold for a while but I’ve just pickled this up again. I have several issues but thought it would be best to highlight them via video – https://www.loom.com/share/9b1f5a17590c48508904cfb144d7f083

Can you please review and advise?

Hi davejbryan

Already answered you under another comment.

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