Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 16,202 sales
Recently Updated

Stepasyuk supports this item

Supported

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

9161 comments found.

Hi,

is there a possibility to show the count of products also in the “Apply button mode”. It is shown in the button with the class “wpc-filters-widget-controls-wrapper” but not in “wpc-filter-layout-submit-button”.

That would be really nice. Or do u have a workaround of inserting it also there?

Thx a lot.

Hi hwvaubel

You can use the Templates Overriding feature for that and modify the apply-button.php template as you need. Also you can insert there function
/**
 * @return int|null number of posts found
 */
flrt_posts_found_quantity( $filter_set_id )

that returns you filtered posts count inside the Apply button and it will show this count.

Regards.

Hi,

thx, I modified everything and it´s working now.

Regards

Hi hwvaubel

I’m glad to hear this :-)

Hi,

there´s a conflict between “Custom Field Exist” “_sale_price” and the “«Apply Button» mode”.

After adding the filter “Custom Field Exist” with meta key “_sale_price” the Apply button disappeared. I double checked it with my second filter set. There the same issue appeared after inserting it.

Removing the added filter for sales didn´t bring back the Apply button.

I found in CSS that .wpc-filters-widget-controls-container is set to display: none and that the child (where the appy button sits) .wpc-filters-section.wpc-filters-section-1054.wpc-filter-layout-submit-button is also set to display: none.

I think u can reproduce this issue. I can get it back with CSS but I think its better when it´s fixed.

Thanks for your help!

Hello hwvaubel

Thank you for the report.

It looks like this bug appeared after adding the Search field to the plugin. We have already fixed it and I’ve sent you the intermediary plugin version with this bug fixed. Please, replace your current instance with this new version and let me know if the bug is fixed on your side.

Thank you. Regards.

Hi,

The “Apply button” is showing up again. This issue seems fixed.

Thx a lot!

Amazing

Hi, I added a filter Filter by: Étiquettes Produit (product tags) Filter title: Promotion Prefix for URL: prx

Some product have “promotion” as tag. when I visit the shop (named boutique) page with .../boutique/prx-promotion/ I get a page not found and QueryMonitor tell “Undefined index: used_for_variations”

Best regard

Hi lesdessouschicsinfo

Please, send us credentials to your /wp-admin in accordance with this document and we will check this.

Also provide us with example of the problem.

Thank you. Regards.

Hi, I just sent to you the credentials by PM. The filter sets is “Boutique”, the filter is “Promo”. The URL with issue: https://www.lesdessouschics.com/boutique/promoted-promotion/?min_promo=1 It is supposed to return all products that have the “promotion” tag.

Best regards

Hi lesdessouschicsinfo

Thank you for the credentials.

I checked your site and realized that the reason of the problem is the code you attached to the hook ‘wpc_filter_path_segments’. If yo disable this code, all works fine and 404 error disappears.

Also this is the reason, why you see in the Query Monitor notice “Undefined index: used_for_variations”.

But in the current plugin verison you don’t need to use your code to select “In stock” products by default. You can add these codes in the functions.php of your active theme or somewhere else – https://gist.github.com/wpserve/6bb6d1c7141f23b058a1ca726ca57372

Please, disable your old code and try to use from example on Github.

Regards.

Hi! Thank you for this amazing plugin. Everything is like a clockwork except one thing. I have 2 different custom post types “authors” and “books” and they have ACF bidirectional relationship. Both of these have different archive pages and can be filtered by various things including relationship. Now, when I want to have dropdown filter in books archive page by related authors, then I see books and authors in the dropdown. How I can remove CPT books from that list and only display related authors? :grin:

I understand that it happens because they use same acf key, but if I use different one, then these cant be bidirectional.

Hi kairikene

Thank you for choosing the plugin.

There are several ways to achieve that:

1. You can manually exclude extra filter terms in the “Include/Exclude” field under Filter’s More options section.

2. Or you can use hook ‘wpc_terms_before_display’ https://filtereverything.pro/resources/hooks/#terms-before-display-hook to exclude extra terms dynamically in the code.

Regards.

Hello, I’ve sent you an email for support. Can you answer me please? Thank you

Hi giessedati

Unfortunately the Dropdown view does not support multiple term selection for the moment. This feature will be added later to the plugin. For the moment such multiple selections are possible only in the way I described above.

Regards.

Is there an ETA for this feature?

Hi giessedati

Unfortunately, there is no exact ETA for it. But we let you know right away when we start working on it in this comments thread.

Best Regards,
- Victor

Good day, tell me with your plugin can be realized by the structure of filters that will be dynamically displayed depending on the choice of product category.

https://prnt.sc/l_g81YdHbsEn

Привіт Maxtymosh

Дякую за користування плагіном. Надалі продовжу англійською, щоб було зрозуміло решті користувачів.

You can achieve your goal via custom coding:

- You can use function flrt_selected_filter_terms(); that allows you to detect what exactly filter terms were selected (or no one was selected). Please, see more about the function here – https://filtereverything.pro/resources/functions/

- You can use the hook ‘wpc_view_include_filename’ to determine what exactly file should be included for particular filter in dependency from the filter terms are currently selected. As option you can create all desired filters and use empty.php file that displays nothing and skip unnecessary filters in dependency from the selection in the category filter.

- Also you can use hook ‘wpc_terms_before_display’ https://filtereverything.pro/resources/hooks/#terms-before-display-hook to set what exactly filter terms should be included in a filter in dependency from the selection in the category filter.

Of course it requires to be familiar a bit with PHP and WordPress or you have ask a developer to help you with this.

Regards.

Thank you very much, I will look into it.

Hi there, I have function which should change tittle of filters set to post sidebar into dynamics, but i cant find any hook to add filter in function i tried with add_filter( ‘widget_title’, ’....’) and works fine for a widget titles :) but unfortunately does not do the job with an actual filter names in filter set. Any idea on what to hook? Thanks in advance. And by the way, awesome plugin! Best regards, Stevan

Andrii mate , i need your support here man .I’m experiencing new problems and old one are not fixed either . Its been almost a month man. New problem ” On this page https://www.temporary-url.com/C36 When let say some shop is selected, for example cotosen, where filter as it should shows only three coupons because that is correct query , when filter is selected it lists all posts attached to that shop. not just 3 coupons as it should it lists all …discounts, deals,coupons! Check settings for that query on same page there is no deals or discounts only coupons . Can you please solve those problems man , i do not want to build all site layouts on something which cant be used! Best regards

Hi seebeer

Unfortunately, we’ve found ourselves in a situation where you expect more from support than CodeCanyon’s item support policy provides. I would love to help you with setting up all the filters on your site, but support here is only for fixing problems with the plugin you purchased. However, we are not responsible for the data on your site and how exactly you set up the plugin, what types of posts you use and try to filter.

Filtering itself is a complex process to understand and it’s easy to get confused, especially if you use many filters based on different criteria and try to filter different types of posts and also use both regular WP_Query and custom ones. It is already difficult to understand even an experienced developer.

From our side, we can only confidently say that from the technical side the plugin works correctly and the problem you described in the first messages has been fixed. If you are unable to configure the plugin to work specifically with your posts and criteria, you can ask a more experienced developer to help you.

If you believe that the plugin contains bugs, please provide all the details – a link to the specific page where you think the filtering is not working correctly and, if necessary, describe in detail the steps to reproduce the error. At this point, the examples you described do not contain enough information, or are not clear enough, to detect the error.

Alternatively, you can also submit a refund request if you believe that the plugin does not do what it promises and it will definitely be processed.

Please, let us know.

Best regards.
- Andrii.

Man i can t make it work with native taxonomy = category… Dont take me wrong , i think you did amazing job with addon, but unfortunately it is not compatible with my theme or maybe multisite in general … Anyhow i will have to submit refund request. All the best and maybe our paths cross again down the road on some other future projects.

Hi Filter Everything PRO

We have a problem regarding your plugin, when the filter tries to receive information from ACF. The total amount of products found is correct, but the products shown in the archive is not.

You can see the problem using this link: https://psc.dk/product-selector/filter-base-material-acrylic-pmma/

Acrylic (PMMA) is selected. 19 products are found, but only 1 product is shown.

The product archive Elementer widget is using ”Posts” with “Products as its custom post type”

Please get back as soon as possible.

Hi Okan

Thank you for the access.

The reason of the problem is that you Custom Field contains data in two different formats – raw data and serialized. Please, see – https://prnt.sc/8tv3Gaxf3gFS

Usually it is consequence of that fact that your Custom Field was changed. For example you changed its type or format or so.

To make all things right, you have to make all data in these fields in the same format – either serialized (red line) or raw (blue line). As option you can remove this field and create it from scratch and fill your posts with data from this field.

Please, make this data in one format and all will start to work properly.

Thank you. Regards.
- Andrii.

Hi Andrii

Our marketing bureau has just let me know that I should give you guys access to our website again. After doing what you said in the last comment, they are telling me that the filters still don’t work. When I choose ‘Acrylic (PMMA)’, for example, it is still not filtering correctly.

Please let me know if you need more information, and I will do my best to answer it myself or relay any questions to you.

If not, please let me know what I can do to resolve this issue. It has been a long-standing problem now.

Hi Okan,

In the “ACF -> Product selector -> Material” we have changed the: “Acrylic (PMMA)” to “acrylycpmmatest : Acrylic (PMMA)” and updated one product and everything is working, we suggest not using in ACF just “Acrylic (PMMA)” as it may cause issues (the ones that you are facing right now).

And if you need to display ACF field labels instead of values (instead of “acrylycpmmatest” you want to see “Acrylic (PMMA)” ), you can add to the functions.php of your active theme appropriate code from the examples below. You also have to edit this code in accordance with your ACF field meta key(s). Below are these codes:
1. ACF field is Taxonomy object – https://gist.github.com/wpserve/0634299bcc67d03bef77119dd20c86e7
2. ACF field is a field with choices – https://gist.github.com/wpserve/48277fc0320239d05b1d6e2c4da3db20
3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56
Best Regards. - Victor

Best Regards.
- Victor

Hi I would like to use the sorting widget with a block theme (twentytwentythree). For this, I need the shortcode [fe_sort] with an id.

In your documentation, you write:

“How can I find widget id? It’s a bit inconvenient, but to use this shortcode you must to create a WordPress widget first.”

Do you know how I can create this widget with a block theme?

Many thanks and best regards. Daniel.

Hi microteq

Unfortunately it is impossible to use the Sorting widget in themes that does not support widgets at all. Because this widget requires custom created sorting options and shortcode does not provide possibility to create and configure these options.

So the only one way is to try to use theme that supports widget or if it is possible to try to add this support manually as WordPress recommends https://codex.wordpress.org/Widgetizing_Themes

Thank you. Regards.

Hello!

I am having a problem when filtering custom fields created with ACF. The changes I make to the list of options in my field group in ACF are not being recognized by your plugin. I determined a list with a certain order in ACF (see screenshot: https://up.stratto.com.bo/wp-content/uploads/2023/05/Screenshot-1.png), and in the ACF backend everything is working correctly, but when I display those fields in your plugin’s options, the order that I established in ACF is not maintained. (see screenshot where PISO 4 is missing and is placed in the wrong place further down the list: https://up.stratto.com.bo/wp-content/uploads/2023/05/Screenshot-2.png)

I have tried updating the plugin but that didn't help, it just made the following error appear on top of the filters:

Notice: Undefined index: cols_count in /home/rfrxvmqd/public_html/sites/up/wp-content/plugins/filter-everything-pro/src/Admin/Widgets/FiltersWidget.php on line 537

Could you please help us with this issue? We have tried checking for plugin or theme conflicts but the problem has persisted.

Thank you and best regards.

Hello lootcl.

Thank you for using Filter Everything PRO.

1. The order in ACF field is not related with terms order in a Filter. Filter Everything orders terms in frontend in accordance with the option “Sort term by” value. Also Filter Everything gets terms not from ACF field, but from posts custom fields. Even you will add new value to the ACF field, it will not appear in the Filter, until you update any post with this new value selected.

2. Regarding this message:
Notice: Undefined index: cols_count in /home/rfrxvmqd/public_html/sites/up/wp-content/plugins/filter-everything-pro/src/Admin/Widgets/FiltersWidget.php on line 537
Please, just re-save Filters widget settings and the error will disappear.

FYI Your support period is expired and if you will need our help, please extend it i accordance with the CodeCanyon rules.

Thank you. Regards

is it possible to replac e the mobile filter in a filter or hook?

nevermind i founc the solutions.

Ok, great.

Thank you for the report about that.

Regards.

Hi, how to set the “Folding” option true only for the mobile but not for the desktop?

Best regards

Hi lesdessouschicsinfo

There is hook ‘wpc_filter_options_before_display’ that allows you to modify a filter options on the fly.
$filter = apply_filters( 'wpc_filter_options_before_display', $filter, $set );

The option that determines wheither to make a filter collapsible or not is $filter array element with key ‘collapse’ and possible values are ‘yes’ and ‘no’. You can modify this value in dependency from the device is currently used to browse page with filters – mobile or desktop.

Of course thies expects that you a familiar a bit with PHP and WordPress or you have ask a developer to help you.

Thank you. Regards.

Dear All,

I am really trying hard to get something to work, but I just cannot get it running. Please, can you help?

I have several categories in Wordpress. The categories need two extra checkboxes to filter them, Checkbox1 is App, checkbox 2 is web. I am using ACF to get this done, they are field groups, one for Web (checkbox) and one for App (checkbox). I can see them within a category and I am able to click them and save it.

Now I want to use Filter everything to make this selection visible and available on a site or on the blog, but I just cannot get it to work. Can you please tell me how to do this?

Thank you so much!

Best regards Ingo

Hello Ingo

Thank you for your clear explanation.

Now I understood what is you goal. But I have to say that you are trying to filter posts by meta values that stored in your category terms, but not in posts. It is impossible because it is second level relation.

The Filter Everything plugin filters posts by their native meta values and not by meta values stored in categories that are related with posts. And I think there is no such plugin that allows you to do that.

Instead of that you can just add similar ACF field to your posts and set them values Web or App and create filter by this Custom Field.

Regards.

Hi all, Thank you very much for getting back to me, I understood and I have tried to set things up just like you mentioned, using custom fields at the posts directly. But, when I visit the page using [fe_widget] shortcode, I am not able to filter anything as the plugin seems to not recognize the posts. All amounts are 0. You can have a look here on the test page: http://bft.ingolechner.com/de/test/ I have no diea what I am doing wrong. Can you please help once again? Best regards Ingo

Hi ingolechner

Thank you for the link you provided.

I tried to check the page, but I don’t see there neither Filters widget, nor posts grid.

Usually if you see 0 in each filter it means you didn’t select right WP_Query in the “And what to filter?” field of the Filter Set. Or even you didn’t select any WP_Query because there is no WP_Queries at all. If it is the last case, please display your posts grid first and after try to configure Filter Set. Because if you do not show any posts on a page, there is nothing to filter on the page.

I hope this will help you to setup filters. Regards.

Can I hide the category description if more than 2 filters are selected? and in general, the category description does not disappear even if you add an SEO description. two descriptions appear.

Hello spacetheme

You have to know what exactly hook is used in your theme to display the original Category description and disable it via remove_filter(); WordPress function.

Usually it is 'get_the_archive_description' hook or 'woocommerce_after_shop_loop' if you use WooCommerce.

Also if you want to add condition when to show this description and when do not show, you can use the plugin function
/**
 * @return array|false all selected filters or false
 */
flrt_selected_filter_terms();

that returns selected filter terms if they exist.

Of course all these requires to be a bit familiar with PHP and WordPress hooks or you have to ask a developer to help you with this task.

Thank you. Regards.

Так і зробив. Дякую. Забув написати що вирішив проблему))

Great.

Thank you for your report.

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!

Just curious, is there a way to have the pop-up filter widget show on all devices and not just the mobile version?

Hello SRUKen

Sure, it is possible. You can change the mobile view breakpoint value via the next custom code:
add_filter( 'wpc_mobile_width', 'wpc_set_mobile_width' );
function wpc_set_mobile_width( $mobile_width ){
    $mobile_width = 1920; // Screen width in px
    return $mobile_width;
}

You have to add it for example in the functions.php of your active theme.

Regards.

Great. It works perfectly. Thank you.

Hi for filter with range can we add our own placeholders text within the input range boxes Thanks

Hi beauosun

Sure, it is possible via the Templates Overriden feature – https://filtereverything.pro/resources/templates-overriding/

You can override existing Range filter view template with your own and put there desired placeholders.

Regards.

Hi, How do we add a “reset” button to the filters in case people want to reset back to default on the page where the filters are

Hi beauosun

Thank you for choosing Filter Everything PRO.

For this goal it would be better to add Chips on the page that will allow to reset all filters or unselect some of them if needed. Please, look on this documentation page about how to insert Chips on a page – https://filtereverything.pro/resources/chips-widget/

But in case you need exactly “Reset” button and no other chips, you can use next trick – to place Chips widget or shortcode [fe_chips] wherever you need and to add the next CSS code snippet:
#wpc_chips_widget-2 .wpc-filter-chip:not(.wpc-chip-reset-all){
    display: none;
}
Where #wpc_chips_widget-2 is the chips widget wrapper and it may be different in your case. You can find it in the Chips HTML code.

Also you can add this CSS on your site via Filters -> Settings -> Experimental -> Custom CSS.

Regards.

Pre-sale question.

Problems that i have with other filters plugins:

I have multiple values for a variation, ex: Strength with values: 1kg , 2kg , 500g , 200kg, 1g,

The main problem is the sorting of values, in my wordpress backend i manually arranged them : 1g, 500g, 1kg, 2kg, 200kg but in frontend still displaying random, ex. 200kg, 1g, 2kg, 500g, 1kg.

Is there a way to keep the original sorting from wordpress backend of the values?

Hello okarimasu

Thank you for your interest in Filter Everything PRO.

If you mean to sort filter terms in a Filter, my answer is “yes, it is possible”.

There are two ways to sort filter terms in a Filter:
1. To sort them via sorting option in the Filter
2. If sorting option will not sort them as you want, you always can do it via the hook ‘wpc_terms_before_display’

Please, see example here – https://filtereverything.pro/resources/hooks/#terms-before-display-hook

Regards.

Hello This message is to tell you I have to delete my Local wordpress website since there’s has been a critical error while testing your plugin wih Elementor.

Can I install this on another local? Thanks Natalie

Hello Natalie

Thank you for using Filter Everything PRO.

Sure, you can install the plugin on your other server. But why do you ask about this? Do you have any issues with that?

Please, let me know.

Unfortunately I am unable to activate my license. It displays an “unknown error” every time I try byusing the provided keys. Hope to hear from you soon.

Hello Natalie

We can help you to activate the license on our side. Please, send us two things:

1. The License key you got after click on the “Get your License key” button in the plugin Settings.

2. Credentials to your /wp-admin in accordance with this document.

Thank you. Regards.

Hi,

I’m having an issue which is my product categories have multiple subcategories. However, the filter only show one or none subcategories. I’m not sure is there any setting I have missed out? OR any setting i must tick?

Hope to get your reply soon.

Thank you.

Hi,

Everything is fine now. Just found out there is the setting missed out.

Thank you.

Hi JessyLim

Thank you for the report. I’m glad that your issue was successfully solved.

Regards.

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