Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,674 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8957 comments found.

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.

Hello! 1) Can your plugin search and filter Pods ACT stored at custom DB tables? https://docs.pods.io/learn/what-are-advanced-content-types/ 2) Can your plugin search and filter Pods repeaters fields as: (A) Simple Repeater – https://docs.pods.io/fields/simple-repeatable-fields/ and (В) Multi Fields again with DB Custom Table storing – https://wordpress.org/plugins/panda-pods-repeater-field/ ??? 3) How can I use it to search and filter at connected tables like ‘Region -⪪ Countries -⪪ Tours”?

The plugin with work with Pods but not with values placed in custom tables.

Best Regards, - Victor

Also it seems Search is not AJAX and does not have dropdown suggestions on entering? Rating filter suppose linked to WC Products?

Yes, you are correct, the search field won’t show any dropdown with suggestions. Yes, the rating filter is linked to WC Products.

Best Regards,
- Victor

Hi, Is it possible to implement a keyword search within every field of the custom post type? Current search is limited to title and excerpt I believe.

Hi interpret,

The search field looks for similarities in the title and description/content.

Implementing a multi-field search can negatively impact website performance if it is not optimized correctly. As each field requires an additional query, it can increase the load on the database. This is especially significant for larger databases with substantial amounts of data. Searching every field of a custom post type can significantly slow down performance.

That’s why we didn’t implement it yet, but maybe we will add this type of functionality in future updates.

Of course, you can extend the functionality with the custom code, but we do not provide or debug custom codes following the support policy here on CodeCanyon.

Best Regards,
- Victor

Okay, any way to integrate ACF better search plugin with the filters in that case? As ACF Better Search has this functionality already but right now, I can use it separately as a search bar but cannot add it within Filters Pro

Hi interpret,

Well, technically, it is possible to make it work together and kinda integrate it, as you said, but you need to have knowledge of ACF and our plugin with advanced PHP skills. And time (lots of time) for experimenting with how it can be implemented without losing workability and don’t cause any bugs.

Unfortunately, we do not provide functionality extensions.

Best Regards,
- Victor

Hello,

I purchased this plugin only two months ago and it already says my license is invalid – it was okay for a while, but now the application will not accept my purchase code. Returns “Invalid license key. Please enter correct license key.”

I have confirmed my key multiple times, copy-pasting it directly from my codecanyon account, the downloadable txt file, and also the envatoMarket pdf download. I have also entered it with and without the ”-” chars just to be sure, I have also ensured there were no white spaces or extra characters copied across.

Can you please inform me as to how I might go about resolving this?

Regards,

Andrew

Hi Andrew,

Thank you for choosing Filter Everything PRO.

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

Hi i am trying to fill in the license code API for the plugin. But i get continuous Unknown error message.

Best regards ICN

Hi ICN,

Thank you for choosing Filter Everything PRO.

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

I already sent the credentials

Hi internetconsumer,

The license was activated, and now everything is working as it should.

Best Regards,
- Victor

Hello,

I bought the plugin, but I cannot find the license code. Where can I see it?

Hi magikreator,

To set the 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.

Best Regards.
- Victor

Hi Stepasyuk,

My client has multiple webshops. Can i use 1 license for 2 or 3 sites or do I need to buy a license for every website?

Hi keeslina,

By default, you can activate the license on the two sites. Usually, it’s the dev and production sites, but you can activate it on both prod sites. You need to deactivate it on the unneeded site. You need to buy a new license if you want to activate it on more than two sites.

Best Regards.
- Victor

Hi, Is it possible to add a filter by sale percentages discount so you can filter by range slider or checkboxes for: Up to 20% discount | Up to 30% discount | Up to 40% discount | Up to 50% discount

Thank you!

Hi moshepc,

In WooCommerce, the meta key for the sale percentage discount is not predefined by default. They can vary depending on the configuration and customization of the store.

You can create a custom numeric field, apply it to the products with the needed discount number, and make a range slider/checkbox filter by its meta key.

Best Regards.
- Victor

Thank you for the information …. Is it possible to add a filter of the discount percentage like in the sale label 20% / 30% Without the need to go each product and set a ACF of up to 20% discount so it will automatically show it … I have more then 600 products so i’m trying to find an automatic way to filter by sale discount

Unfortunately, it is impossible. The sale labels you see, like 20% / 30%, are automatically calculated when displayed, and it is impossible to filter by them as they are not stored anywhere.

Best Regards.
- Victor

Hi, Got a console error:

Mixed Content: The page at ‘https://********categorie-filter-type/' was loaded over HTTPS, but requested an insecure stylesheet ‘http://*****wp-content/uploads/cache/filter-everything/2816eef8183e3e5e021860162b149231.css?ver=6.2.2'. This request has been blocked; the content must be served over HTTPS.

Hi Jurgen_Braem,

Thank you for choosing Filter Everything PRO.

This error is not related to the plugin.

The mixed content issue you’re experiencing is related to site migration. When you migrate a WordPress site from one domain or server to another, it’s important to update all URLs throughout your website to reflect the new domain or server.

If you have recently migrated your WordPress site from HTTP to HTTPS (secure connection), but some resources are still being loaded over HTTP, it can result in a mixed content error.

Best Regards.
- Victor

Hi Stepasyuk,

Just wondering when you’ll be finished the XML site maps feature?

Thanks, best regards, Yon

Hi Yon,

We are currently working on implementing this feature, but unforeseen delays outside our control have slowed down the work. However, it will be released at the closest time.

Best Regards.
- Victor

I used default Twenty Nineteen theme and setup in Customizer next setting: “Category display” -> “Show subcategories”

So my parent category display subcategories only. But if apply default filters – it display filtered products.

Then I tried exactly the same filter from plugin Filter Everything – and I see only text “18 products found”, but no products. Instead I still see subcategories.

Why there are no filtered products like default filters and text only about amount of filtered products?

p.s. I know that if setup “Show subcategories & products” all works, but I need “Show subcategories” because when user applied filters I don’t want to show subcategories and only then filtered products it has no any sense, I need to show filtered products.

Hi destify-marketing,

As we mentioned previously it won’t work like that with our filter plugin. The built-in filter in WooCoomerce has its own abilities and functionality and it is working with WooCommerce itself. Our plugin works with the product_query that WooCoomerce is presenting to display the products so it won’t make products appear if they are not displayed by those settings where you choose to only show subcategories. So it will filter those things that you choose from the settings to be displayed.

Best Regards,
- Victor

Hi Victor,

in other words plugin ‘Filter everything’ has no full compatibility with default woocommerce. I beleave it must be said in plugin description. Because when default woocommerce setting (I mean customizer archive setting in this case which I described above) does not work with plugin – it means not 100% compatibility.

But in all other plugin is great, really like it :)

Hi destify-marketing,

To put it simply, Woo is a product factory and our plugin acts as a filtering machine that comes after it. The default filter is already built into the factory and has the ability to modify its behavior. If you choose in the factory settings to show only categories, our plugin will not alter the factory’s behavior to make it show products as well. However, the built-in filter can work seamlessly with the factory as it was designed by the Woo developers. We are only dealing with the finished product after it leaves the factory, we can only sort products and not make any changes to the factory itself.

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