Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,654 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8947 comments found.

I have a CPT created with ACF. My customer want to represent their product price range with dollar signs $,$$,$$$, etc. These are set in a select field drop down in the ACF.

When I try to filter this field, it displays a “There are no filter terms yet” or a “N/A” message. If I add the word test as one of the select options, that displays just fine in the filter.

Can you suggest what I can try to display/use the dollar signs? Do I need a value:label pair in the fields settings, or do I need to encode the dollar sign? Thank you!

Follow this step-by-step guide:

1. Create an ACF field – https://prnt.sc/EkZdK1d3RhTl (you already have it so use value and label like it is in the screenshot)

2. Add this code in the functions.php file and use your custom field meta keys (it will show labes instead of a value in a filter):

// Add the filter hook
add_filter('wpc_filter_post_meta_term_name', 'wpc_acf_labels_instead_of_values', 20, 2);

// The callback function for the filter
function wpc_acf_labels_instead_of_values($term_name, $meta_key)
{
    //Place your meta keys here that you want to display labels
    $meta_keys = array('dollar_sign', 'another-meta-key', 'third-meta-key');

    if (in_array($meta_key, $meta_keys)) {
        if (function_exists('acf_get_field')) {
            $field = acf_get_field($meta_key);

            if ($field) {
                $field_key = $field['key'];

                $new_choices = [];
                if (isset($field['choices']) && !empty($field['choices'])) {
                    foreach ($field['choices'] as $key => $value) {
                        $new_key = mb_strtolower($key);
                        $new_choices[$new_key] = $value;
                    }

                    $term_name_test = mb_strtolower($term_name);
                    if (isset($new_choices[$term_name_test])) {
                        $term_name = $new_choices[$term_name_test];
                    }
                }
            }
        }
    }

    return $term_name;
}

3. Add a filter to your filter set by your meta key and hit update – https://prnt.sc/sQkqYCeZjbM4 (if you already have a filter set with the filter by that meta key still update it)

4. Done – https://prnt.sc/tzFJ-f8cUn3G

Best Regards,
- Victor

I’ve got it working – thank you for putting this together.

Only detail is there are no (0) counters for this field – https://prnt.sc/Dp5pFdLB4Yra

Hi bluerobotllc,

Please add a bit more information on the “Only detail is there are no (0) counters for this field” which field, how and why, and where so we can understand it better because right now it is a bit confusing. The more information you will give the faster we can resolve the issue.

Best Regards,
- Victor

Dear team,

we are working on a webshop and use your filter. We are very happy with it. Now we would like that when we filter by category, this is actually reflected in the url. How do we do this? If you opt for red wine, we want this to come back literally: www.website.nl/rode-wijn. Now we need to enter a slug for the category we don’t want at all under the settings. Do you know how we can achieve this?

Thank you in advance!

Regards, Markoning

Hi Markoning,

The reason we implemented it this way was to avoid conflicts with the WooCommerce plugin and even WP. If we had approached it differently, there could have been a situation where both plugins attempted to display items simultaneously, leading to errors and other conflict issues.

By designing it in this manner, we ensure that each plugin knows its specific role and doesn’t interfere with the other’s functionality. This enhances the overall stability and performance of your website, allowing it to work seamlessly without conflicting with each other.

Best Regards,
- Victor

Standard Woocommerce filtering doesn’t work anymore?

We are using Filter Everything to create a filter on the home page, this works great! On the shop page however we still want to use standard Woocommerce filter widgets. Is this possible? Thanks in advance, Martin

Hi BOEI17,

Thank you for choosing Filter Everything PRO.

No, it is working here both of the filters are on the same page, the red one is WooCoomerce and the green is our filter Filter Everything – https://prnt.sc/9XFcksVz7pTo Both are working normally without any troubles. Perhaps you have some issues with setting up the WooCoomerce filter or some other plugin is conflicting with it.

Best Regards,
- Victor

Thanks for your quick reply Victor. It is working now after we changed the prefix settings in the Filter Everything plugin.

Glad to hear that everything is working fine now.

Best Regards,
- Victor

Hi. I have set up a filter that works based (filter portfolio items by curtom field). Although when I tryed to do a seconf filter with similar characteristics (portfolio items and filter by other custom fields) i allways get the response: “there are no filters item yet”. I have configured the new page where the filter should work, as also configure the new custom fields in similar manner as i did with the first field. Can you help me? Thanks

Good, now you are back on the https, and we updated the filter set and everything is working. But for those graphics to appear seems like they are using AJAX or something else and should be triggered on filter term allying. More about it you can read here – https://filtereverything.pro/resources/ajax-related-problems/ If you will turn off AJAX it will work since the page is refreshed and everything is triggered by page refreshing.

Best Regards,
- Victor

Excelent work Victor! five-star rating

Hi filipecerca,

Thank you for your warm words about my work.

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! Best Regards,
- Victor

Hello Guys, we can not seem to save the search field with all the other filters already set and working.

Please advise on how to force this, it shows as it’s already saved, but when we refresh, clear cache, remove any temp files it’s not really saving this Search field setting.

Is there some type of hard limit of how this works with a larger set of filters? https://filtereverything.pro/resources/search-field/

Thank you and best regards…

Hi ingenuitor,

Check your plugin status, if it is “Locked” then you need to activate the license in order to make changes in the filter set.

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

Update to the previous answer, also, make sure that you are using the last version of the plugin which is v1.7.14.

Best Regards,
- Victor

Hello!

I really like this addon, however, we seem to be having an issue. We have the free version that we were testing with before purchasing. We are able to create a filter and have it show on our page without any problems, the issue seems to be related to the AJAX. When we have it enabled and select a filter, it looks to filter with no problem but it just keeps spinning and never finishes. We have to reload the page to get it to disappear. We would love to find this issue before purchasing to ensure it is going to work. Thanks for your assistance!

Hi JVennard81,

Thank you for your interest in the Filter Everything plugin.

There is no “one way” to fix this issue, as it is unique to each case, AJAX requests can be blocked on the site, or other plugins conflict, custom code, and other stuff. If it is working without AJAX then a plugin is working and set up correctly. If not the plugin filter set setup wasn’t made correctly. And then step-by-step try to debug and find the reason why AJAX isn’t working correctly on your site.

Best Regards,
- Victor

Update to the previous answer, in the case of purchasing the PRO version, you’ll have 6 months of support, so we can help to fix this AJAX issue.

But as long you are using the Free version, you can write your request on the WordPress support forum – https://wordpress.org/support/plugin/filter-everything/ and wait for an answer there.

Best Regards,
- Victor

Hi! I like the new search field. But the results are wrong if the search word is not found. If nothing is found, there should be a message saying “Search result is empty”. Now, it just shows the post of the last query. Another way to try it: search for a word that exists. Then search for a test word. The result will be the same has before. That’s confusing. Any advice for that? Thanks!

Hi vgStef,

Thank you for choosing Filter Everything PRO.

Please send the link to the page with the issue so we can check it.

Best Regards,
- Victor

License seems to have been deleted and not accepted when I re-enter it. This needs to be fixed.

Hi pjverrone,

In order to check the issue and try to fix it, we need the following things from you:

1. Credentials to your /wp-admin following this document
2. And your license key.

<storng>Please, send all these via PM.</storng>

Best Regards,
- Victor

Sent via PM. Tested account access. Sent basic auth creds as well.

Hi pjverrone,

Thank you for the credentials.

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. That is the license key that we need.

Best Regards,
- Victor

Hi there,

Similar to others I am having issues activating a license key. I have followed the assigned steps in the document, have PM’d the login details/link to you.

Thanks!

Anna

Hi anna451,

Thank you for choosing Filter Everything PRO.

We have activated the license and everything is working well.

Best Regards,
- Victor

Hi Victor, thank you for such a prompt follow up! Can I go ahead and delete the additional plugins?

Hi anna451,

Yes, of course, you don’t need them anymore.

Best Regards,
- Victor

Hi, I’m using Elementor Pro with an Astra Theme and Filter Everything Pro. I have a filter set filtering Posts by Categories. That works well. But on the page where I put the Elementor Pro Posts Block, the filtering stops working when I add the Query into Elementor: “Source Posts – Include: Term – Term: Categories: Industry.” I need a way to only show one category on an Elementor page that we can then filter with Filter Everything Pro. My invoice number is Invoice: IVIP51344484 and I purchased last week. Many thanks. Al

Hi Victor, thanks for coming back to me. I have identical settings to you in Elementor. The elementor query works as desired so that’s not the problem. Your plugin will only work when there is no elementor query. Is that something you’ve seen before? As per my question, I’m wondering if I’ve got a setting in your plugin set incorrectly that may be causing this conflict.

Hi Victor, the plugin has started working. It started after I played around with the ‘View in Widget settings’. So all good, again thanks for coming back to me.

Good to hear that everything is back to normal and working.

Best Regards,
- Victor

Hello, where can I find some instructions about how to make the filter appear?

Hi watchdat,

You can check our quickstart guide – https://filtereverything.pro/resources/quickstart/ to understand how to work with the filter and how to display it. Also, check the shortcodes area.

Best Regards,
- Victor

Hi Nice plugin, but we have a problem when used with Polylang and Yoast SEO all pages are empty, we have to empty rewrite rules using permalink to make page content appear, and after a short period ‘1 or 2 days’ pages became empty again…

Hi Victor, did you received the PM? I’ve sent you the link to a github repository with all the files and identifiers for a test instance.

Hi CecileGuyart

Thank you for using the Filter Everything PRO and for your bugreport.

We faced with such issue before and usually the reason was that one of term or post slugs on a site matched to a filter URL-prefix and this generated some confusion within WordPress. Usually the issue could be solved by editing suspicous URL-prefixes.

If you still have this issue on your site I recommend you to check URL prefixes in Filters -> Settings -> URL Prefixes and if some of them potentially could match to post or term slugs on your site. And to change them to something another if they matches. This should help you to solve the issue.

Thank you. Regards.

Hi Stepasyuk

https://drive.google.com/file/d/1535YnXvfmaAK2CRl9Ae-4M86KomYiPLi/view?usp=sharing

As you can see from this video, it’s not a problem related to prefixes. I’ve tried it on an empty instance of wordpress with Polylang and Filter Everything, and the same result with Yoast seo, there is an issue with activation order or something else causing instability on our customer sites …

Dear Team,

as agreed with Boie Baumann we have sent you the credentials for the hyundai site. Hope you can work with.

Hi nord_ostsee_automobile,

Thank you for choosing Filter Everything PRO.

We have checked the site and provided information on the issues via email to Boie Baumann.

Best Regards,
- Victor

Hello,

I need to create a filter menu dropdown for 4 parent categories showing the subcategories in each parent category. Each parent category should be in one box to order the items.

I tried to create one different filter for all the parent categories, but is not showing all the parent categories at the time. Now is just showing one parent category.

I need to create something like this: https://www.auslandsjob.de/jobs/job_type-vollzeit/job_filter_country-europa/ the example of horizontal filter. I want to show the parent category in a single box. Now I cant do it in one filter, because it doesnt let me choose two times the portfolio category.

Hi helefante,

Hard to say what type of styling you have applied and if you modified the templates and you don’t have any arrows in your dropdowns. Also, there are some errors in the console that we would recommend to check. In general, just try to turn off all of the custom styling maybe custom coding and update filter settings. Such behavior can be only caused by custom changes/codes.

Best Regards,
- Victor

Hi, I didnt edit the plugin documents template. I have created another stylesheet for this adjustments.

I have detected that the class select2 it has dissapeer from the code. I have made the style changes from the classes that were affeccting the items I needed, so now it doesn´t look good because its not present the class select2.

I know I can change de selectors and it could show again with the styles, but i’m afraid that it can change another time…

Hi helefante,

What version of the plugin you are using?

And please provide the credentials to the wp-admin following this document and specify in PM which are the pages with the issue so we can check it right away.

Best Regards,
- Victor

Hi,

I have an issue when trying to activate my license key. It just doesn’t work and give me an “unknown error”. Could you please help?

Best,

Chris

Please send the license key as well.

Best Regards,
- Victor

We activated the license and everything is working well.

Best Regards,
- Victor

Awesome, thanks for your help!!

Hi Team,

I’ve installed & done all the settings as you provided in the doc but filters are not working in my website. I checked in demo the filters are working with WooCommerce but I’m using custom post type (Products) not WooCommerce plugin.

Can you please check & suggest what I’m missing?

Hi CooloNL,

Thank you for choosing Filter Everything PRO.

Please send the link to the page with the problem. Also, please note that the plugin is working with the WP_Query, WooCoomerce uses product query to display all of the products, as long as you are using the query to display the products you can choose in the “And what to filter” correct query and everything will work.

Best Regards,
- Victor

Hi Victor, could you please send me an e-mail on robert@purplemedia.nl so I can share the details?

Hi CooloNL,

We have checked the issue and provided the info by mail.

Best Regards,
- Victor

I am using Full Site Editor (Gutenberg) with basic Template Twenty Twenty Three. Unfortunately the frontend of [fe_chips] is not nice (example: https://repekum.cz/stag/?product_cat=deodoranty&znacka=urtekram). Text is not aligned. I tried to solve with some custom CSS but I did not find a solution. Can you help me with solution to have wpc-filter-chip-name nicely aligned (centered)?

Hi richard_repetebox,

Please check this link to read about template overriding – https://filtereverything.pro/resources/templates-overriding/ you can add your needed styles right into the child template. Or use custom CSS for chips.

Best Regards,
- Victor

is there any documentation for this ? i am unable to setup on my website home , product pages

Hi donnas33,

Thank you for choosing Filter Everything PRO.

Yes, you can start from here – https://filtereverything.pro/resources/quickstart/ this is a quickstart guide on how to set up a filter set and display it.

Best Regards,
- Victor

Hello, for some reason the filters aren’t working on mobile. Only desktop. The filters show up, but nothing actually filters on mobile. Why is this?

Hi prydedesigns,

Please send us the link to the page with the issues so we can check it.

Best Regards,
- Victor

Hey Stepasyuk, I’ve got a strange situation where the plugin’s dynamic page title, content, and SEO description have stopped working. The setup was working perfectly, then just stopped. I have the site in a dev environment where I’ve deactivated all other plugins, set a default theme, and removed any custom code, but it still isn’t working. I’m seeing no errors in the console, debug.log, or error.log. I’ve tried debugging with `console.log` similar to the one below but getting nothing to help debug this. The environment is running PHP 8.0, WP 6.2.2, and FEP 1.7.14. I’ve tried downgrading the WP through the various version back to 5.9.5 and both downgrading and upgrading the PHP versions. I can’t share the URL in a public forum due to an NDA. How else can I debug this?

``` jQuery(document).on(‘ready’, function(){ console.log(‘Filter Everything Pro AJAX operation finished’); }); ```

Hi Dan,

We have checked the site and found that there was no issue. The solution is to enable indexing for search engines from the WP Admin Dashboard. Once this setting is adjusted, everything started functioning properly.

Best Regards,
- Victor

Thank you for reviewing this Victor. I hadn’t considered the global setting to prevent search engines from indexing the site might cause this. I appreciate your help.

Hi Dan,

Glad to hear that everything is working as it should.

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