Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,676 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8961 comments found.

Hi, we currently have an issue that the filter for 1 language (NL) suddenly disappears after some time. This happens every once in a while. Strangely enough, the filter remains visible for the other 2 languages. We use WPML for the translations. The only way to fix this for the time being is to change the settings in Where to filter.

Website: https://witloft.nl/winkel/

Would like to know how we can solve this permanently.

Hi Victor, it’s only happening on this page: https://witloft.nl/winkel/ for this language. The same filter in the 2 other languages is working fine, so that is the strange thing. Even if we don’t change anything to the site or page it could disappear somehow.

Hi mastersinwordpress

Well, you have this nonstop error going on your site – https://prnt.sc/z_mEAm0UxIJc maybe it is somehow connected. And more likely there are other errors on the site that are not visible in the console.

Best Regards,
- Victor

Hi Victor, thanks. Let met get into this.

Hello

How do I indent the subcategories in the filter widget?

Category 1 – Sub Category 1 – Sub Category 2 – Sub Category 3 Category 2 – Sub Category 1 – Sub Category 2 – Sub Category 3

Hi edwyn

Thank you for choosing Filter Everything PRO.

If you mean how you can make a hierarchy view of your categories. You can choose the category filter, then click “more options” and turn on the hierarchy view. It is working only with checkboxes at the time.

Best Regards,
- Victor

It works. Thank you.

Hi Victor, as agreed I have already sent the credentials for you to test my website library archive page with filter found at /?post-type=biblioteka

Hi mstorasta

The answer was provided via Email.

Best Regards,
- Victor

Thanks, got it. But then, if I need to include a custom sorting on top of that and add a code snippet – this does not come into the final result, meaning I get the output from filter, but that ignores my sort order defined in this code that modifies default query. Sent the code sample on email yesterday.

Hi mstorasta

As previously the answer was provided via email where you shared all of the info. Let’s keep the conversation there since you provide the data that you might not want to share with others. Because answering in both places might be a bit confusing.

Best Regards,
- Victor

Hey,

Loving the plugin, but I’m having an issue with the “Categories” links.

They all have the structure of “https://batteryfiresolutions.com/product-category/blankets/”

But within the filters, the URL shows as “https://batteryfiresolutions.com/shop/product-category-blankets/”

How do I change the filters within FilterEverything to be a ”/” instead of a ”-”

I’ve tried changing the URL structures but I cant seem to figure it out.

Thanks In advance.

Adam :)

Hi Adam

Thank you for choosing Filter Everything PRO.

First of all those URL prefixes should be unique, they should not repeat any existing slugs on your site. Secondly, if you make it like you want you will have a 404 error. As WP will be confused about which plugin should work with this URL is it Woo WP or FE plugin?

In other words, there is no way to change it the way you want. Also if you already created the filter with the URL prefixes that are absolutely the same as your taxonomy, posts, attributes… slugs, you can change them from Filters -> Settings -> URL Prefixes. so you can name them like prod_cat or anything like that. If you have taxonomy slug prod-somethig then URL prefix prod-another will cause errors, but prod_another will work fine.

Best Regards,
- Victor

I’m using Shoptimizer, and I’ve set up SEO Rules for a specific category with color, but it’s not changing the title and description as I’ve specified. Can you take a look?

https://babystyle.rs/kolica-za-bebe/boja-crna/ And the title and description are from the category https://babystyle.rs/kolica-za-bebe/

https://babystyle.rs/wp-content/uploads/screencapture-babystyle-rs-wp-admin-post-php-2024-01-18-11_48_01.png

Please send the credentials to the wp-admin dashboard following this document so we can check it.

Best Regards,
- Victor

Okay, everything is done. You can take a look. Thank you.

We have checked the site and commented out this product order code from your functions.php file in the child theme – https://prnt.sc/GZYPfRFoILOQ and the SEO Rules are working, it is typical problem with such code as it is not written with the WP standards that’s why it is bit buggy and causing issues.

As to the H1 title, you can make a request to your theme support in order to get the information on what hook you can use in order to change the H1 on your page and specify it in this codem so SEO Rules can change it’s value:

if( class_exists( 'FilterEverything\Filter\Pro\PluginPro' ) ){
    $seoFrontend = \FilterEverything\Filter\Container::instance()->getSeoFrontendService();

   add_filter( 'your_theme_h1_hook_goes_here', [$seoFrontend, 'seoH1'], -5 );
}

Best Regards,
- Victor

Hi I need help with the Filter Everything Pro plugin I added an attribute for filtering “Custom Field”, can I somehow set it either in the plugin or in code to always have the defaut value of the “Custom Field” field == 2? is this possible? without the option to change it by the user on the site

Hi harryubuntuuber

You can choose that filter term and use the URL link with this plugin applied. So you can use this as your default shop page link mysite.com/shop/custom-option_2 then simply hide that filter with the CSS.

Best Regards,
- Victor

Hi, I purchased your pro plugin and I would like to make the Special Pop-up Filters Widget available also for the desktop and not just for mobile. I use Elementor and Woocommerce on my site. it’s possible? Thank you

Hi AngeloKjana

Thank you for choosing Filter Everything PRO.

You can change the breakpoint with this code, you can place it in your code snippet plugin:

add_filter( 'wpc_mobile_width', 'my_custom_wpc_mobile_width' );
function my_custom_wpc_mobile_width( $width )
{
    $width = 1920; // new desired breakpoint in px
    return $width;
}

Best Regards,
- Victor

Thanks! Where exactly should I put it? Thank you

We recommend using this plugin – https://wordpress.org/plugins/code-snippets/ just to place our code as a code snippet there without any issues.

Best Regards,
- Victor

Good afternoon. I have a pre-sale question. Tell me, please, will your plugin work with the Oxygen builder? The nuance is that Oxygen does not use the functionality of the WordPress theme, I am building site from scratch.

Hi vesd

Thank you for your interest in the Filter Everything plugin.

Yes, this should work. As long as the posts that you want to filter use WP_Query to display, our filter will filter them all.

Best Regards,
- Victor

Hi,

I have some question on setting up filters

1. For the step-by-step filtering, any documentation on setting up? and how to mark some filter as required?

2. How to show brands icon/images in filters, like in https://demo.filtereverything.pro/step-by-step-filtering/?

3. I have vehicle part custom taxonomy that in parent-child hierarchy, Year>Manufactor>Model, works like product categories and sub-categorys, how to set the filter set like images below that child drop-down options depends and filtered by parent selected? https://drive.google.com/file/d/15PYVgKviEMDLdGmcliT8saYwggEPKgWS/view?usp=drive_link

4. On your experience, how to work or config cache plugins, (e.g. WP-Rocket, LiteSpeed Cache) to work with Filter Everything plugin that can cache and speedup for each visitors but not affect each others? If A user filter with some options and the cached result will not affect others users? Each users can have their own cached filter result?

many thanks

That’s why we said to make them as separate attributes, instead of putting everything together in a category (as chield taxonomy). You can place multiple filter sets on the page now, and use the include exclude functionality to display the needed filters.

Best Regards,
- Victor

If use seperate attributes instead of using taxonomy, attribute do not runs in hierarchy, e.g. the first level select “CPU Manufactor, like Intel/AMD”, second level filter based on parent option the user selected, e.g. user selected “Inte”, then the second level dropdown only shows “i3, i5, i7, i9” and same on in thrid and 4th level in this scenario, how to achieve? thanks

Hi chris_yks

Use “AND” logic. For example, you have a product with such attributes:

CPU Manufacturer: Intel
CPU Model: Core i5
CPU Speed: 4.4 GHz
CPU Socket: LGA

Then if in “CPU Manufacturer” you are using “AND” logic you can choose intel and it will show products that have this attribute on them. Then you choose “Core i5” from the “CPU Model” filter. Now it is showing only products that have in their attributes “Inter” and “Core i5”, not “Inter” or “Core i5”.

The logic you can choose from filter set settings by clicking on the needed filter and then clicking “more options”

Best Regards,
- Victor

Hello,

I’d like to order the terms inside a filter in a custom order. I’ve seen there’s the option to sort terms by “term ID”, but I don’t know how to access nor modify this field (term ID). I’m not using the WooComerce plugin. Is there any way I can do this?

Thank you in advance,

Anna

Hi Anna

Here you can check the hook that you need to use with an small example – https://filtereverything.pro/resources/hooks/#terms-before-display-hook

Alternatively, you can try this code, it works with term names and Case sensitive (but those are all examples and you need to write your own version for it):

// FE SORT FILTER TERMS MANUALLY add_filter('wpc_terms_before_display', 'wpc_sort_terms_as_needed', 10, 2); function wpc_sort_terms_as_needed($terms, $filter) { // Define custom sorting orders for different meta keys $sortingOrders = array( 'meta_key_goes_here1' => array( 'Text1', 'Text2', '1', '10' ), 'meta_key_goes_here2' => array( '8', '12', '90', '8T', '8 T', '18T', '40T' ), // Add more meta keys and their sorting orders as needed // 'another_key' => array('term1', 'term2', 'term3'), ); // Check if the current meta key has a custom sorting order if (isset($sortingOrders[$filter['e_name']])) { $customOrder = $sortingOrders[$filter['e_name']]; // Create an associative array to store term objects $termMap = array(); // Populate the term map foreach ($terms as $term) { $termMap[$term->name] = $term; } // Sort the terms based on the custom order $sortedTerms = array(); foreach ($customOrder as $name) { if (isset($termMap[$name])) { $sortedTerms[] = $termMap[$name]; unset($termMap[$name]); } } // Add any remaining terms to the sorted array foreach ($termMap as $term) { $sortedTerms[] = $term; } return $sortedTerms; } return $terms; }


Best Regards,
- Victor

Thank you so much, it worked!

Hello, I have a problem with Filter Everything. First of all, thank you for this great plugin.

Problem: I am building a page which has several categories. There are probably 30-40 categories. I have now created individual filtersets for some categories but came to the conclusion that it is very inflexible if I want to include new keywords because I have to insert the keyword individually for all categories.

so i thought about building a super filter that is displayed on all pages and hides the empty tags.

Unfortunately, the filter only works if I select an exact page under “where to filter” and not if I leave it empty “any page page (for general search across all page pages)”.

In the filter set it also tells me this message then No WP queries matching the post type “Product” were found on the page Note: If you change the selected WP_Query on the page, please update this filter set

I don’t know how to get my filter to filter on all pages without creating a separate filter set for each page (which would be very impractical and time consuming)

Translated with DeepL.com (free version)

Hi d_a369

The option “Any page” will work if all of your pages have the same queries (basically takes the first page scans it for queries and then uses it for the rest).

Unfortunately in your case, they do not have the same queries. So at the time, the only solution is to create separate filter sets for each page.

Best Regards,
- Victor

Hello

We bought this Plugin for a client. they have it installed and we have it installed locally to test updates. Recently our local version now reports LOCKED. Can the licence key we have also be used foe a local installation?

Thanks

From the filters -> settings -> license tab you can deactivate the license and activate it on another site.

Or with buying an additional license, so you will have the ability to activate it on 4 sites.

Best Regards,
- Victor

Can’t do that as staging site no lonher exists. Do you have access to manually deactivate sites? if so it’s the domain with ‘demo’ in the name.

Hi redactuk

You can send via PM your lincse key and we can deactivate it across all of the sites and you can activate it on the needed ones only. PM is here – https://codecanyon.net/user/fe_support

Best Regards,
- Victor

Dear Support! I encountered the Unknown Error issue on licence activation. I’ve sent you the information in PM.

Thanks!

Hi Victor, licence key also sent via PM. Thanks!

The license is activated and everything is working well.

Best Regards,
- Victor

Thank you!

Hi,

How to add filter for stock status, in stock/on Backorder/Out of Stock in custom filter set? many thanks

Hi chris_yks

You can check it all from the right side of the filter in the dropdown – https://prnt.sc/n6Pe3NgGfmeL

Best Regards,
- Victor

Hi,

I got issue when adding Filter Set for specify pages. I have a plugin “Vechile Parts Finder” that has thousand custom taxonomies. When I try to add filter set, it keeps loading and the admin page freeze. I have disabled all other plugins and changed max_post_size and execute time on server but still cannot fix.

Is there any way to add filters without load all taxonomies while adding filter set? I have tried others filters plugin while enabling custom taxonomy filter without this issue. e.g. “HUSKY – WooCommerce Products Filter Professional [WOOF Filter]”

Any solution to enhance or speedup or not to load all data of taxonomy while adding custom filter?

I have record the screen, and can I email the link to you privatly not to public?

many thanks

Hi chris_yks

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

And you can send the screen record link so we can see how to recreate the issue.

You can send it all via PM. In instruction, there is instruction on how to do it.

Best Regards,
- Victor

Hi Victor,

Already sent the credentials, please check with the “Vehicle Parts Filter” filter set. And I want to have the filter divided into Year, Make, Model… for seperate dropdown in parent-child hierarchy, like https://drive.google.com/file/d/15PYVgKviEMDLdGmcliT8saYwggEPKgWS/view

Hi chris_yks

This is what we get when we use your link from the credentials – https://prnt.sc/vjN437P9ai4Y

The filter looks like that, as we said, you can either use include/exclude functionality and place a couple of filter sets on the page. To display them you need to use either multiple widgets or shortcodes. In order to separate one category filter on parent and child categories filters.

Best Regards,
- Victor

Hello again! I update my pro version, but now I don’t see filtering results. The home page appears again. In old version everything works fine. How to fix this? http://www.diabloauto.bg Thank you in advance!

Hi mimidimi

What do you mean by the “The home page appears again”

And it looks like there are no products on the page that you have sent to us. And shop page has Woo filters. So we are a bit confused about how it was working previously and what you mean by the “The home page appears again”

Please provide more detailed information, so we can fix your issue as soon as possible.

Best Regards,
- Victor

I add filter fields on my homepage, after selecting some values from drop down menu `(for ex. from ДИАМЕТЪР select 18(2)) I am redirecting again to home page, not to the 2 products which have diameter 18. Hope you understand me now. And thank you.

The filter can redirect only to one page which you will specify in the settings. Please check this demo page with redirection filter instructions – https://test.filtereverything.pro/fe_faq_test_mode/redirection-filter/

Best Regards,
- Victor

Hello, we have an issue with the SEO Description of the matched SEO Rule. We use custom PHP code provided by you in the docs to show the SEO Description on the page.

When there’s one match for filter, instead of the desired SEO Description, the content of this filtered post is displayed: https://imgur.com/a/JMlr2np When it should be just text like this: https://imgur.com/a/cbGAsrq

Any suggestions on how to fix this?

Why can’t you use another hook in order to display this SEO description? Why it should be up to the customer to find this conflicting hook, and since probably another plugin uses it also (I repeat we use little to no custom code there), I need to contact another support line?

In your opinion, should I also reach out to other plugin developers and ask them to change their code as well (since I obviously can’t customize another plugin’s code)? Seems like you want to pass the responsibility for this implementation to me, customer, or to another plugin devs, not you. This is not going to work, Victor.

I was actually just able to display the correct SEO description by commenting this line of code from your solution:

$seoText = apply_filters( ‘the_content’, wp_kses_post($seoText) );

When I remove this line from the function, everything works as expected. Food for thought.

Hello fittrac.

Thank you for using the plugin and contacting support. We are always happy to help our customers and especially happy to help you.

It should be noted that we do this within the CodeCanyon Support Policy https://codecanyon.net/page/item_support_policy which includes answering questions, fixing errors in our product, but does not include modifications and changes on customer sites.

We would be happy to do that too, but then the plugin would cost not $40, but for example $60 or $80 to cover such extended support.

The ‘the_content’ hook is used when displaying the SEO Description to preserve typical WordPress formatting you do in the text editor of the description and to preserve compatibility with plugins that modifies posts content.

Indeed, when you commented out the ‘the_content’ hook, the problem went away, but from a technical point of view, this is another proof that there is some third-party code on your site that uses this hook and modifies SEO Description on the page.

Unfortunately, within the limits of current support, we cannot spend our resources to find the cause of such a problem and fix it.

I hope for your understanding.

Thank you. Best regards.

Hello, I want to know if there is a different and optimal way to solve the following issue for my website with the plugin.

I have a series of data that should appear when clicking on a dropdown menu. The idea is that they are not visible until clicking on the dropdown menu. It is not necessary to enter the element, just preview the information.

I plan to solve it with blog posts, creating an entry with the data and using custom fields to add all the data, and configuring the appearance with CSS. Currently, I have the filter functionality resolved with blog posts, but when configuring the post type to filter, I have seen that it can be filtered by entries, pages, and pop-ups.

Could I create pop-ups from Elementor by adding the elements and then create a filtering type for these elements? If so, which WordPress module should be used to create them?

This is the page that I’m working on: https://ingrentia.helefantest.com/distribuidores/

This is the design that i’ve to accomplish: https://ingrentia.helefantest.com/wp-content/uploads/Captura-de-pantalla-2024-01-17-a-les-13.40.38.png

Yes, is what I need.

The idea is something similar to Customization example 1, but with a dropdown and without the tags. It is not necessary to open the page of the data.

You would need to write a custom code in order to make it work like you want.

Here is the function that will help you with it:

/**
 * @return bool true if it is a filtered page and false if not
 */ 
flrt_is_filter_request();
Usage example:
<?php 
if( flrt_is_filter_request() ){
    // Your useful code
} ?>

If you apply any filter term this function will return true and you can run your code if it is true. It can be any JS code or however, you want it to appear.

For example, if you choose any filter term, it returns true and runs the JS code that will make your container with posts “display: block” from “display: none”

Best Regards,
- Victor

Hi, i’m trying to have multiple tag filters in the product collections, but they have to be dependent of one other filter. If i have all filters in one filter set, all works great, but i can’t have the tag filters separated. How can i achieve this using different filter sets?

Also, i assume i need multiple licenses, for multiple websites, correct?

Thanks.

Here is the link to one of my category pages (it is in Portuguese, but i think it should be understandable): https://ferramaq.pt/maquinas/berbequins/

Oh we did it on this site – ferramaq.pt

You can download it from this site (CodeCanyon).

Best Regards,
- Victor

No problem. We checked and everything is working fine. Thank you so much for the support.

We are glad to hear that everything is working fine.

Best Regards,
- Victor

Hi, As i can see your demo, applying the filter returns a quick result without reloading the page, but on my website, the filter reloads the whole page and make time to show the filter result, please how can i setup this option like on your demo? Thanks

Hi TidMed

By using the AJAX option in the filters -> settings -> general. The speed of filtering fully depends on your server hardware and optimizations.

Instruction about setting up AJAX can be found here – https://filtereverything.pro/resources/plugin-settings/#ajax

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