Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,682 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8967 comments found.

Hi i have problem with filters. When i try filter products for order its showing me products who is asi variants in stock. Here si my site link – https://novy.montemama.sk

Try to turn on this option in each filter that you are using – https://prnt.sc/icIfFdag20_h

Best Regards,
- Victor

I have check check options to hide out of stock items from catalog. I want hide in filter this products.

Hi montemama,

Oh okay, now it is understandable. The fact that you hide it from categories (exclude) is just hiding the “out of stock” term from the filter, it doesn’t remove all “out of stock” products from filtering. If you want to by default not show “out of stock” items you can use this code here for your case – https://gist.github.com/wpserve/6bb6d1c7141f23b058a1ca726ca57372 it will show only in stock items by default.

Best Regards,
- Victor

Hi :) I’ve got a question from our webmaster about your plug-in : By the time the plug-in is active on woocommerce, our side of the website on woocommerce, it gets terribly slow … How could we fix this ? i’ll transfert that to our webmaster then :) Thanks for your time Best regards Tristan

It’s fixed, you’re good to go :) Have a great day Tristan

Hi Tristan,

We have activated the license and everything is working well.

Best Regards,
- Victor

Thanks you so much ! Have a nice evening Tristan

For 6 sites we bought Filter Everything Pro. On 1 site the plugin does not work. Is locked and I can not activate the licency Key: Y29kZWNhbnlvbnwxNjgxOTE1MjgzfDdkN2I1NWIyLTJlOWUtNDkyYi05OGNhLTFmMjI5MWI3ZjM2OQ==

This plugin was bought on 19. April, license 20 April 2023.

I already tried to delete the plugin on the site and start all over, but I also can not delete the plugin in WordPress.

Can you help us?

Best regards, Miriam Donkers

Hi Miriam Donkers,

Thank you for choosing Filter Everything PRO.

Please, send us credentials to your /wp-admin following this document so we can check it.

Please, send it all via PM

Best Regards,
- Victor

Hi,

The mobile widget doenst show up anymore, i cant figure out why accessiblevisit.com

Dekstop is good, mobile doesnt show… Do you know why?

Hi pmcooperation,

This is one of a couple of codes that we have provided previously – https://prnt.sc/QnxLCSoWYxFe

And this is your functions.php – https://prnt.sc/0DXr19RSp5kC without any of those codes.

That’s why we recommend going through all of those comment threads and repeat everything step by step as it was there. Following those instructions.

Best Regards,
- Victor

Hi Victor

Yes, that works and is back again, the code was gone, i dont know why, but i placed it back and the fllter is back

kinda weird, but hx

Hi pmcooperation,

Well, more likely your child theme functions.php was edited to provide some additional support and compatibility, at least that’s how it was looking from the code, and that’s why there were no additional codes that you placed previously. Anyways, glad to hear that everything is back to normal.

Best Regards,
- Victor

Hello, I am building a website. I have pages with product widgets within the website that I would like to include a sort by, product ratings and price filter. I am enquiring whether the PRO filter will work on the pages with product widgets as most filters only work with archive pages. I am not that experienced as this my first website to build. linked is the page that I need to add the Horizontal filter on the home and kitchen products container> https://www.hakikamall.co.ke/home-and-office/

Hi brianmuteam,

Thank you for your interest in the Filter Everything plugin.

Sure, you can check our demo here, where the filter is filtering by rating and price, and other terms – https://demo.filtereverything.pro/product-category/clothing/women/feature-rated-4/?min_price=48.32&max_price=280.42

You can place the filter widget on any page, but products should be displayed on the page with WP_Query. If they are, then everything will work.

The horizontal filter layout you can check here – https://demo.filtereverything.pro/horizontal-views/color-blue/brand-hm/

Best Regards,
- Victor

I’m using the plugin to filter for an advanced custom field where i select another post which i use to store more information regarding the brand of the product. However the filter displays just the specific ID of the Brand Post Type Object and not the specific title. Can i modify this somehow?

Hi McSunday,

Thank you for your interest in the Filter Everything plugin.

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.

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 Stepasyuk,

My license-key isn’t working. I’ve been working with Filter Everything on a demo-website.

But now I am live with my website and it got transferred to another URL. I can’t use the same License-key it seems.

Can I somehow delete the old property with the key and use the key in the new live-version?

Thank you in advance.

Kind regards,

Niels Dirix

Hi NielsDirix,

Thank you for choosing Filter Everything PRO.

Please send us your license key via PM so we can deactivate it on all other sites.

Best Regards,
- Victor

Please, note that the License key and CodeCanyon purchase code are different things.

To set the License key, please go to Filters -> Settings -> License, click 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.

Best Regards,
- Victor

Hello, there are a couple of problems that I could not figure out on my own. 1. The “Show 23” and “Cancel” buttons for mobile devices (I have a pop-up widget) do not work correctly on my site, namely, clicking on them reloads the page (although I specified to use AJAX in the settings). It works correctly only when I selected the filter, it loaded and I click on the cross at the top to close the window, only in this case the page does not reload (( (maybe a problem due to the fact that I turned on the compatibility mode of the popup widget? but without this setting, my widget window is dark and not on top of all objects on the site) 2. I could not set up a filter by price, I do everything according to the instructions from your site, but the slider does not work, and I enter a number in the min-max fields and this filter does not find anything ((my website address for verification https://zalezhni.art/shop/

The fact is that I did not make any changes to the search, it does not work for me out of the box! The problem that you pointed out to me in the screenshot is similar to Yakykov’s localization

Hi Handubei,

As previously noted, the issue may also arise from other plugins. The most efficient method of troubleshooting would be to disable 50% of the plugins, update the filter set and test for functionality. All of the issues in 90% are because of the custom code or by the third plugin conflict.

But we can assure you if you use any latest standard WordPress themes with the support of the widgets and add WooCoomerce and our plugin. Everything will work perfectly great. It was tested by us more than hundreds of times and by users more than a thousand times.

Best Regards,
- Victor

Okay, I’ll try to figure it out on my own and remove all the errors of the other plugins! And I’ll write you the result

Hello Victor, This message to tell you i just sent you credentials to activate my new license key on 2 websites. All infos in my message. Thanks by advance for your help. Best regards.

Wonderfull !! Thank you very much for your reactivity Victor !! Best regards

just to you know, the first one is a development one, so we will have to change the url in maybe one month, i’ll write back to you when needed. Thank you

Sure, just create a new request in the comments section after you send all of the needed information.

Best Regards,
- Victor

Hello!

Could you please tell when option to disable pretty permalinks for filter set will be available in the plugin?

https://codecanyon.net/item/filter-everything-wordpress-woocommerce-filter/31634508/comments?page=51&filter=all#comment_29143374

This feature is much needed. Because I have landing pages where I don’t need pretty permalinks and I can’t switch them off on specific pages or filter sets. I can only disable completely on whole site using ‘FLRT_PERMALINKS_ENABLED’ but that’s not an option for me. I only need them off for certain filter sets.

Hi 1jayfry,

We are in the process of completing the XML sitemap, which experienced some unexpected delays. Once complete, we plan to incorporate the additional functionality as previously discussed. Rest assured, we are committed to implementing this feature and will provide updates in this comment thread as progress is made.

Best Regards,
- Victor

Thanks!

Hello, first of all I would like to thank you for this great plugin! I noticed a bug related to the “wpc_do_filter_request” hook in the “addFilterQueryToWpQuery( $wp_query )” method of the “WpManager” class. It turns out that when the hook returns false, the posts displayed on the results page are good, but the filters that appear are wrong, they do not take into account the fact that a filter is not used. For example the filters do not display a term that should appear or the number linked to a term is not correct. After a lot of research, it turns out that the hook only impacts the output results but not the term calculations, filters etc. To solve the problem, I therefore had to modify the “collectFilteredPostsIds” method of the “EntityManager” class. . I added a hook with the same name to not take into account a filter during the calculations. Could this be fixed in the next version please? Here is the code I modified :

Before :
foreach( $queriedFilters as $slug => $queriedFilter ){

            $queried_value_key = $queriedFilter['entity'].'#'.$queriedFilter['e_name'];
            if( ! in_array( $queried_value_key, $set_filter_keys ) ){
                continue;
            }
After :
foreach( $queriedFilters as $slug => $queriedFilter ){

            $queried_value_key = $queriedFilter['entity'].'#'.$queriedFilter['e_name'];
            $do_filter_request = apply_filters( 'wpc_do_filter_request', true, $queriedFilter, null);

            if( ! in_array( $queried_value_key, $set_filter_keys ) || !$do_filter_request){
                continue;
            }

Hello Did I express myself badly or do you want me to rephrase something?

Hi youssefe74,

Thank you for the provided code and bug, we added it to the list, and after the author will check it, and provide additional info on it, we will reply with an answer.

Best Regards,
- Victor

Hello youssefe74

Thank you for using the Filter Everything PRO and for your suggestion. Indeed, you are right, if some filter is ignored via the ‘wpc_do_filter_request’ hook it also should be ignored in the filter term calculations. I alrady added code you offered in the dev version and it will be present in the next plugin update.

Thank you. Regards.

Hello, I have purchased your plugin and successfully set up a filter set and it is filtering great. What I need to do know is hide the posts until a filtered search has been completed. How can I do this? Thank you

Hi dyanna109,

Thank you for choosing Filter Everything PRO.

Unfortunately, the plugin does not offer any options for styling the product container functionality, to hide it or not, before filtering, it has to be custom coded. All the plugin is doing is just filtering products. For example, there is a function:

/**
 * @return array|false all selected filters or false
 */
flrt_selected_filter_terms();

Note: This function works correctly only if it fires after the Main WP_Query. It means after hook ‘pre_get_posts’ fired.

You can use it to check if any term was selected and apply the needed custom functionality.

Best Regards,
- Victor

Can you help me with this please? I don’t know much about coding

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

Best Regards,
- Victor

Hi, is there a way for products to be filtered on a Product attribute archive page that are related through an ACF taxonomy? I can get a simple product attribute archive working with filters but I need the ability for this to work with ACF fields.

The taxonomy is a multiselect that uses a product attribute to populate the multiselect and each product can have one or many. I want each attribute to have their own page and displays the linked products. Example /types/type-1, show all products that have Type 1 selected in the ACF field.

I have tried use the `pre_get_posts` hook but it doesn’t filter products at all. What am I doing wrong? The results are always empty and the filters also no showing counts.

I have tried using ‘LIKE’, ‘IN’ and ’=’ and none make a difference.

function my_custom_filter( $query ) { if ( !is_admin() && $query->is_main_query() && $query->is_tax('pa_types')) { // Get the current term ID $term_id = get_queried_object()->term_id; // ACF multi select field is selected_typesand uses Term ID $query->set('meta_query', array( array( 'meta_key' => 'selected_types', 'meta_value' => get_queried_object()->term_id, 'compare' => 'LIKE', ), )); } } add_action('pre_get_posts', 'my_custom_filter', 9999999 );

I have confirmed that the products are correctly linked via the ACF field using this

$args = array( 'post_type' => 'product', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'selected_types', 'value' => get_queried_object()->term_id , 'compare' => 'LIKE', ), ), ); $products = new WP_Query( $args ); var_dump($products);

Any pointers would be helpful.

Sorry, the my_custom_filter is slightly wrong, that was something I was testing. It should be.

function my_custom_filter($query) { if (!is_admin() && $query->is_main_query() && $query->is_tax('pa_types')) { $query->set('meta_query', array( array( 'key' => 'selected_types', // ACF field 'value' => get_queried_object()->term_id, // Current attribute ID 'compare' => 'LIKE', ), )); } } add_action('pre_get_posts', 'my_custom_filter', 9999999);

Hi RossCode,

It is difficult to provide recommendations or tips on this matter due to its rarity. Debugging and development are necessary to ensure the proper functionality of the approach (which requires time). Unfortunately, we cannot offer assistance with custom codes or debugging in accordance with the support policy here on CodeCanyon. Maybe if there were more free time, we could check it, but currently, all times and forces are focused on the update that will be released soon.

Best Regards,
- Victor

いつもお世話になっております。 インストール先のURLが1か所わからなくなりました。 blancvert.comの他にインストールした場所が不明です。

そちらでわかりますでしょうか? もしくは、一度両方を無効にしていただくことは可能でしょうか?

よろしくお願い致します。

Hi sei7,

Thank you for choosing Filter Everything PRO.

We have deactivated the license on both sites, and now you can activate it on the needed sites.

Best Regards,
- Victor

Hi there, I need your help. I am using GeneratePress and I followed the instructions on setting up SEO rules but when I tested, the titles are still not updating, I don’t think it is working.

I noticed you mentioned hooks many times for similar issues, does GeneratePress have the same limitation?

Hello, any advice please?

Hi freefallapps,

Okay, so if you want a depth of 2 and an index page only when you select color and brand, you need to choose “any color” and “any brand”. In this case, it generates an SEO rule if any single term is selected from the color and brand filters. But, if two or more filter terms are selected it won’t index the page.

To ensure that those filters can be indexed, you must create separate variations of SEO rules with only two attributes, such as color + brand, color + RAM, RAM + CPU, and so on.

Please note that the price is not included in the SEO rules as it would result in thousands of identical pages with different numbers, which is considered a bad practice.

Additionally, it is not possible to create SEO rules when multiple filter terms are selected, as it can affect the effectiveness of search engines. This is because it would result in SEO phrasing such as “buy red or green or blue iPhone.”

“Optimizing SEO for the phrase ‘buy red or green or blue iPhone.’ not only offers less effectiveness in terms of search engine rankings but also carries the risk of being perceived as a spammy site.

Moreover, using overly broad keywords like ‘buy red or green or blue iPhone.’ can trigger search engines’ spam filters. This is because such phrases are often associated with low-quality or manipulative SEO tactics, where websites attempt to attract traffic for a wide range of keywords without providing valuable content. Being marked as spam can lead to penalties that harm your site’s overall search engine visibility and reputation.

Best Regards,
- Victor

Hey Victor thanks! It is clear to me now and I managed to get it working.

How do I hide the posts until a filtered search has been completed? In other words, I dont want anything to show up until the user completes a search?

Hi dyanna109,

Thank you for your interest in the Filter Everything plugin.

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.

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

Hello, thank you in advance for your support. I have noticed a problem with the sorting of the results. If set as default, everything works fine. However, if I customize the sorting in WordPress and choose any other type of sorting, only the price sorting works, while the others do not change. I have tried using ID and date, but it doesn’t work. It always returns the results in descending price order (which I have set as the default). I am using the ASTRA theme. Do you have any ideas?

Hi favoledigitali,

Perhaps it is a problem with setting up sorting options or meta keys. It’s hard to answer on the fly what can cause the problem. But definitely, those options need to be rechecked from the widget area.

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 will be 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

Best Regards,
- Victor

Hi! I use the Filter Everything PRO plugin for my Polish-English site with WPML.

I created a Filter Set to filter posts on my blog page. Everything works great, but only when I have the page’s default language turned on, i.e. Polish. After switching to English, the filtering stops working.

Please see attached image: https://snipboard.io/3Kbcpg.jpg.

The settings in the filter are as follows: - “Post Type to filter” – Posts - “Where to filter?” – (“Apply filtering if page is:”) “Common WordPress pages”, “Blog Page” - “And what to filter?” – “Post Query.Main Query.”

Could you please help me how to fix it?

Regards, Grzegorz

There is some AJAX restriction on the en blog page (it always return 404), not sure why, perhaps it is some plugin or some configuration. Because, without AJAX, everything is working great. And on the other pages, everything is working great.

About the currency, the plugin is compatible with two popular and free Multi-currency plugins, WOOCS and CURCY. But you can check the code and its realization for those plugins if it needs to work with another currency plugin. You can find it in the “wpc-third-party.php” file around the 465 line.

Best Regards,
- Victor

Hi! I bought the Filter Everything plugin because its website says it’s fast, has AJAX and is compatible with WooCommerce and WPML. Thus, with AJAX enabled, filters should always work properly regardless of the current language of the page. Similarly, since it is compatible with WooCommerce, the price slider should also show the amounts correctly in each case. I have been fighting with the price issue in the slider for several weeks in the free version of the plugin. I thought that if I buy it, either the problem will solve itself or the support will help me :) Please provide some solution so that the filters work properly with Ajax enabled and the prices in the slider also show correctly. Maybe some snippet in the functions.php file? Mainly I’m talking about the price slider on the store’s website. If it works properly it will be enough for me. Please help me! :) Grzegorz

Hi Grzegorz,

We have checked the site once again, to the blog error, we have changed the URL for the EN version from “en-blog” to “blog,” and everything is working. Seems like there was some conflict because of it.

Regarding the currency problem, the “WooCommerce Multilingual & Multicurrency currently” addition is not supported, but we are planning to add it in the future. Right now, you can use free plugins like WOOCS or CURCY for different currencies. That’s the only way out at the time.

Best Regards,
- Victor

Hello, I have a problem with the product filter. I use bricks builder and when a filter is selected, the query loop reloads, all photos of the product disappear, and they are not assigned to the selected filter anyway. https://artbasia.pl/sklep-powertex-decoupage-wroclaw-artbasia/ Please support me on this topic.

Hi brodabarbara,

Thank you for choosing Filter Everything PRO.

It can be a couple of reasons. The first one is the WP_Query in the “And what to filter” is not the correct one. Try to choose another one. The second one is that your site contains the plugin that creates and uses the copy of the Query, and that’s why it is not working correctly. Third is the caching plugin that catches absolutely everything and brings workability issues.

Best Regards,
- Victor

I am using the php do_shortcode ‘fe_widget’ and ‘fe_chips’ on a post archive page and it is filtering the posts perfectly. What i want to do as well though is whenever posts are getting filtered by a specific term name (I filter the posts by taxonomy), I want to get that term name with php to match it with any sentences within in the filtered posts that start with that term name and echo just those sentences in the results.

But I don’t know how i get the term name after I am on the filtered page. So for example, it are game posts and the taxonomy is the game title. When I filter for ‘Game Title One’, i want to get that term when it is selected and use it in the code i need for matching the sentence etc. How do i get the selected term name?

Hi wcpwouts,

Are you trying to create something like a dynamic SEO text description depending on the terms selected or what you are trying to achieve? From the description, it is a bit confusing.

The plugin gets all the data from the database. If you want to somehow check what filter terms are selected, you can do it by custom code or any other solution. Or by URL since all of the filter terms are added to the URL in the form of the parts.

Best Regards,
- Victor

Yes indeed it is something like a dynamic text for selected terms. Your answer pushed me in the right direction – I am doing it now by the terms of the selected filter in the URL and with a bit of trying and testing I got the functionality I was looking for. Thanks.

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