Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,742 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8990 comments found.

Hello, I just purchesed filter everything pro and it works fine so far. I have 2 questions right now:

1. I am filtering a custom taxonomy (tag) via ACF output = term object but it shows only the ID’s in my checkboxes, how can i change that to names?

2. is there a way to get a search field so i can search bij custom fields? or do you suggest a other solution for this?

edpeeters

You have to replace 'tax_object' with 'ingredient' if it is field key in your case. And also you have to replace 'product_cat' with 'post_tag' if you use Post tags.

thank you a lot, it works fine now.

Hello edpeeters

I’m glad to inform you that built-in Search Field compatible with filters, AJAX and that allows you to search Woo products by SKU was added to the latest plugin version 1.7.8. You can update it automatically if you have activated your License key or download zip here on CodeCanyon.

Thank you. Regards.

Hi,

is it possible to use the free/pro version of your filter plugin with woocommerce products component with manual selection ? It is very important to me to filter only upon products in manual selection. Thank you

Hi dvidh2

Thank you for your interest in Filter Everything PRO.

Yes, it is possible with PRO version of the plugin as only it allows you to filter custom WP_Queries. Note – this implies that manually selected products relates to the WP_Query that receives them from DB.

Thank you.

is this plugin is compatible with listeo and listingpro listing directory sites ?

Should be compatible. But as I said you have to ask about support for the free version on WordPress.org forum – https://wordpress.org/support/plugin/filter-everything/

Hi i have trying to get the filter everything to show in widget or elementor page showing nothing why is that. i tried in three website but it’s not showing i followed the documentation as it is

Hi basithibnukamil.

Thank you for your interest in Filter Everything.

This comments section is provided to support users who purchased the plugin. As I see you didn’t do that and I can only suggest you to ask about support for the free version on WordPress.org forum – https://wordpress.org/support/plugin/filter-everything/

My client have purchased and I’m working on it . I working on pro version only filter can not be view at any place widget or elementor

Ok, sure. I believe in this. But Rules are Rules, ask please you client to write question from its account and I will answer him. Otherwise I can not provide any support.

Hello, I have a problem with the filtering not working based on a meta_query that I have.

I have a query setup like this:

add_action( ‘elementor/query/allvehiclestest’, function( $query ) { });

// Set the custom post type 
$query->set( 'post_type', [ 'vehicle-details' ] ); 
if (!empty($_GET["search"])) {
    $searchText = $_GET["search"];
}
$meta_query[] = array(
    'key'       => 'searchfields',
    'value'     => $searchText,
    'compare'   => 'LIKE',
);
$query->set( 'meta_query', $meta_query );
$query->set( 'order', 'ASC' );
$query->set( 'orderby', 'images' );

And I have a page: https://bulldogmotors.vincuestaging.com/inventory/ that works great as far as the filtering goes on a custom post type.

You can see inside of the allvehiclestest query I have the ability to listen for a search query string – if I pass this in, like this: https://bulldogmotors.vincuestaging.com/inventory/?search=21-319 the grid correctly returns 1 vehicle but the filtering still shows ALL the possible filters as if nothing has been searched.

How do we get the filtering to listen to the query in the case of it having a query string of search?

Thank you so much for your time!

Pass on the information please.

Also I wanted to express my condolences to the situation over there. Hope you’re staying safe, and we are incredibly impressed that you are staying in touch with everyone on here.

Okay we have this archive page made, one is the defaut search and one is the direct post type search:

https://bulldogmotors.vincuestaging.com/?s=2014 https://bulldogmotors.vincuestaging.com/vehicle-details/?s=2014

This has their own filter widget on the left, with 2 options for now, year and make.. I’ve saved it using the only query it could find.

You can see that it isn’t filtering anything at all, but if you go directly to https://bulldogmotors.vincuestaging.com/vehicle-details/ it is able to filter the items correctly.

Hello thebriann

Thank you for your condolences. This is really awful all that the russians are doing in my country, they are absolute barbarians and killed more than 100 ukrainian children.

About filtering.

It seems you did something wrong when you tried to configure filtering search results. In general plugin works with it as I mentioned above.

If you want to allow Filter Everything to filter your dynamic meta_query you have to add next code in the filter /filter-everything-pro/src/EntityManager.php line 766 replace this if( $query_on_the_page ){ if( isset( $theGet['s'] ) ){ $query_vars['s'] = $theGet['s']; } }

with this

if( $query_on_the_page ){ if( isset( $theGet['s'] ) ){ $query_vars['s'] = $theGet['s']; } if( isset( $theGet['search'] ) ){ $set_filter_query->set( 'meta_query', array( array( 'key' => 'searchfields', 'value' => $theGet['search'], 'compare' => 'LIKE', ) ) ); } }

This should allow you to achieve your goal. P.S. I provide this code “as is” and I will not provide its support if you will not be able to impement it. Probably you have to ask a developer to help you with this.

Hi. When I uploaded the files in online. Custom CSS is not working but in Localhost its working. How to fix it.

Ok thanks. If products is “0” how we can hide them automatically from category.

I’m not sure I understood you clear. But if you mean how to hide empty filter terms (that contains 0 products) you can activate option Empty terms – Always hide or Hide in the initial FIlters only.

But if you mean to hide pharse “Show 0 results” above products grid, you have to modify your template file.

Hi, can you tell me, why is the filter type “range” grayed out (can’t be selected), what needs to be done, in order to add a range filter to a filter set? Latest pro version is installed. Update: It looks like it needs to be a custom_field_num, issue solved :-)

Hi samuelmaeder

Thank you for purchasing the plugin.

You are absolutely right – for the moment range slider is available for Custom Field filters only. But I will add ability to support it in taxonomy filters.

Hello samuelmaeder

I’m glad to notify you that now numeric filter is also available for taxonomies. This new type of filter (Taxonomy Numeric) is available in the latest plugin version 1.7.0 available here on CodeCanyon.

Hello Stepasyuk,

just purchased your Filter Everything PRO Plugin and tried to setup a Filter for Custom Fields of job offers, but nevertheless what settings I specify, no filter occurs in the frontend.

Would be great if you take a look on it in my testing environment: http://bda-aerztevermittlung.de/stellenangebote-neu/ on this page I’d like to filter for a custom field of the post type “Stellenangebote” named: position_employment_type.

I guess you need to have a look inside the Wordpress Backend. How can I sent you the Admin login for testing in a secure way?

Thanks for your support and best regards, Heiko

Hello dbha

Thank you for purchasing the plugin.

In general you have to try to configure filters by yourself – this will allow you to re-configure them in the future. Otherwise you will aske me every time, when you need to change them :-) Here is manual for quick start – https://filtereverything.pro/resources/quickstart/

Try please to configure and if will not get the result, let me know what exaclty step was failed for you.

Hello dbha

I checked your credentials and realized that you did not add Filters Widget on your page and this was a reason why you did not see it. I added the widget via shortcode (also you can add it as widget in sidebar) to the top of the page and it works.

Also I temporary disabled AJAX as your CSS ID or Class of Posts Container is wrong.

I recommend you to read about AJAX this short paragraph – https://filtereverything.pro/resources/plugin-settings/#ajax

Goodmorning,

I have installed the filter and trying to use it but it is not working. I think it is because of the permalinks. What are the right settings for it to make it work?

Thanks!

Jan

Hello DKP_Jan

Thank you for purchasing the plugin.

First of all you have to try to configure it in accordance with documentation

If it will be unsuccessful for you, please let me know in what step you got the problem.

Why do ask about permalinks? Does your site use permalinks or does not? Please, let me know.

Hi Stepasyuk,

Yes, I have configured it in that way. Maybe you can take a look at this shop page: https://klimliving.nl/winkel/. Here you will see two filters. The above one is yours. Please click on one of the filters (for example with 2 products) and look how many and which products it will show. Next to this you can try this also with the filter below and you will see the difference.

When you have looked at this you will see your plugin will show the right one. Also you can look to the link and see what it does with both. Can you please let me know what there is going wrong?

Thanks!

DKP_Jan

It looks like you selected wrong WP_Query in the “And what to filter?” field of the Filter Set. Please try to experiment with different values in this field.

I checked the demo (https://demo.filtereverything.pro/product-category/clothing/women/), I have a question, can this filter sort be based on my own order, such as the size part, I hope it is xxs, The arrangement of xs,s,3xl,xxl,xl,l, can this plugin achieve this?

Hello WezonetTech

Thank you for your interest in Filter Everything PRO.

If you store size part in Custom Field you can create sorting option by this value.

Hi there I purchased your premium version, the filter is working on the shop page for website on desktop but does not show on smartphone or tablet. The filter widget is showing on smartphone/tablet but when you click on it, a blank filter page comes up. I followed your documentation by checking the pop up filters but it didn’t do anything.



I also have 3 error messages in the widget section:
 The “wpc_filters_widget” block has been affected by errors and may not work properly. Check the developer tools for more details.
 The “wpc_chips_widget” block has been affected by errors and may not work properly. Check the developer tools for more details. 
The “wpc_sorting_widget” block has been affected by errors and may not work properly. Check the developer tools for more details.

What can I do to make it work? I am using the Grano Theme. 
If you need any extra details, please do let me know.
 Many thanks!

Dtoriop

Unfortunately I do not provide any paid extra services except defined in the CodeCanyon item support policy. But I think if you find a developer for example on Upwork, this task could be done less than in 1 hour.

In general I can say that you can do it yourself – you have to create 2 equeal Filter Sets with the same filters and same value for the “Where to filter?” field and put one Filters widget in off-canvas widget area, and second Filters widget in your regular sidebar (you already did it)

Hi there

I got the reply below from my theme support, after I sent them everything you previous mentioned. Your plugin may not be compatible with my theme and I may need to find another filter that is.

“This plugin isn’t compatible with our theme, so you can’t see the filter when click “Filters” button in mobile.” You should contact plugin author and ask for support. See screenshot, the filter should appear in at bottom of page.”

https://drive.google.com/file/d/1bPX23tldua_D6Gu6yPnkV3dJ7yprB8uO/view?usp=sharing

Thanks for your help. Best regards,

Hi Dtoriop

In your case I see two ways to solve the problem:

1) To make steps described twicely above (create 2 Filter Sets and use theme off-canvas widget area and your theme Filters button to open it. Also you have to disable checkboxes Collapse filters widget and Enable Pop-up Filter widget to make filters widget visible on mobile) I think it would be the best way.

2) To use Pop-up filters widget for mobile, but in this case you have to ask your theme devlopers how to avoid removing sidebar content on mobile devices.

Your theme was designed in such way, that it removes all content from sidebar on mobile devices and restores it when you increase browser width more than 1000px. It’s bad, non-standard design solution, but your theme devlopers did it and this is the reason, why Pop-up filters widget can not be opened on mobile.

I would dynamically create internal links for existing values filters.

I have 3 type of filters:

- Place - Location Type - Event Type

While in place (rome) i need to create links like:

/event-type-private-party/place-rome/ /event-type-degree/place-rome/ /event-type-18-party/place-rome/

and so on…

Is there any function to retrive existing terms (event types) for a current taxonomy (place in this case)?

manzullo

I would like to help you with this, but this is something out of the support policy scope. I can not write code for you or to develop required algorhytm to solve your task as it requires some efforts, some time which I have no and this is not provided for by the support policy.

Probably you have to ask a developer to help you with this. Functions above will be useful for him.

I hope you understand me.

ok thank you. I can understan. So can you support me about more about this functions?

Sure, I could only tell you what they do but these already described in comments above them.

1. flrt_get_page_related_filters() – returns array of all filters from the Filter Set related with current page or empty array if there are no filters

2. flrt_selected_filter_terms() – returns all selected filters or false if there are no selected filters

Hi there,

We have 2 issues which we do not manage to sort them out so am asking for your help.

1. We have established 4 filters which are setup to be displayed in all category pages and 1 filter which should be displayed only in a specific category. When we acces the specific category – only the dedicated filter is displayed, the other 4 filters are missing

2. For those 4 general filters (stock status, brands, price range and price type) – all the values displayed in sidebar close to each checkbox are correct as values, however when you select some checkboxes the Brands and Price Type (based on _sale_price meta) are not doing anything, the page is reloaded with the same number of products.

If you need any extra details, please do let me know.

Many thanks!

Hi Florian

Thank you for your credentials. I checked your site.

1. About your 4 widgets for all archive pages for post type and separate widget for certain category – it’s normal behavior of the plugin and there is no any errors. Certain Filter Set has bigger priority than common and if it is specified only it (or several certain) will be shown.

But I’m not sure why do you use 4 Filter Sets instead of to use single Filter Set with all 4 filters? I think it would be better in your case and You can specify certain Filter Set for specific Category with all 5 filters.

2. On your Shop page there are no products, only Product categories. You have to configure your Shop page to show also products but not only Product categories.

And it seems that your Product category pages and Shop page have different WP_Queries. It means that you have to create different FIlter Sets for your Shop page and for all your Product category pages.

Thank you for your help Andrey, we managed to setup the plugin as it should work due to your feedback above. Take good care of you and your family. Slava Ukraini! ❤️

Thank you webbing. Heroyam Slava!

Hey! Great plugin. But im having problems to translate Filter labels or even to chose witch filter i whant to display in widgets. No options to chose from when iw created multiple filters. Just a blank filter everything: filters widget block. I use Polylang Pro and Loco translate.

Btw, i suggest u add info to “Show hierarchy” option that it only works with checkbox list. Lost some time looking for solution, why it doesnt work when i was using “labels list”.

Ok, thank you for your suggestion. But I’m not sure how to use hierarchy for labels list. They are placed in a line and they can not be expanded/collapsed – https://prnt.sc/cWU9w1jfU4ah

Hi, i’m adding some custom fields to the seorules post type. I would help about to retrieve the ID of the current rules post ID

Hello manzullo.

You can get post ID for SEO Rule for current filters combination with the next code: if( class_exists( 'FilterEverything\Filter\Pro\PluginPro' ) ){ $seoFrontend = \FilterEverything\Filter\Container::instance()->getSeoFrontendService(); $seoRulePostId = $seoFrontend->get( 'seoRulePostId' ); var_dump($seoRulePostId); }

I have tried unsuccessfully to set up my first filter on WooCommerce Product Category for Pages I have upgraded to Pro but this option is not clickable in the Filter Everthing dropdown list. I am confused

Hello burnagebete

Thank you for purchasing the PRO.

If you can not select desired taxonomy for filter, it means that this taxonomy is not related with the Post type selected for Filter Set. Try please to select Products as post type and after to select Product Category for filter.

Also I recommend you to look into documentation how to configure filters correclty – https://filtereverything.pro/resources/quickstart/

Thank you for your help, I have now created the filter. Unfortunately I now have another problem as the Elementor Widgets are not available in the Elementor page. I have try all manor of different combinations after research on your support site and in your documentation. This issue does not appear to be documented, or am I missing something

Hello burnagebete

If you mean that you can’t find Filter Everything widgets in Elementor sidebar, it is known problem in the last Elementor versions. Search bar for that widgets doesn’t work, but you can scroll Elementro sidebar and find there FIlter Everything widgets and select them.

If you have problems with other Elementor widgets, it seems you have to ask Elementor support about that.

Hi Stepasyuk,

First and foremost, thoughts and prayers to you and everyone in Ukraine! Our hearts go out to all of Ukraine as we watch the news from BC Canada. Wish we could do more aside from donations . . .

I just bought the pro version of your fantastic plugin. Enjoying reading and learning about all the options, etc. I do have a question regarding the “xx products found line” – please see screenshot. https://prnt.sc/1nAMktpxBlqg

Is there a way I can place the “xx products found line” under the Chips panel? Or even below the last filter?

Thanks!

Peter

Hi Petermgr.

Thank you for your words of support. Indeed, not only words are important to us now, but also real help.

About your quesiton – yes, sure. You can use function flrt_posts_found_quantity( $filter_set_id ) that returns number of posts found.

Example that you can put in your sidebar or page template // 237 is Filter Set ID <?php echo flrt_posts_found_quantity( 237 ); ?> products found

But you have to be familiar a bit with PHP or ask a developer to help you to put this code in the right place.

Why is edit showing on the page where my filter set is displayed and how can I get it removed?

Hello junkmailblitz

It is useful link for convenience to edit current Filter Set. But you may not worry, it is visible only for logged in administrators. All other users do not see it.

But if you want to hide it anyway, you can add next CSS in Filters -> Settings -> Experimental -> Custom CSS .wpc-edit-filter-set{ display: none; }

This comment is just to leave feedback for future improvements. I can see from others comments that there isn’t a way to duplicate sets.

Ideally it would be create to duplicate filter sets or be able to apply one set to multiple categories.

The duplicate feature would be ideal.

Hi onlinegrowthgroup

Thank you for your advice. This task is already in my schedule and I will notify you here in comments, when it will be ready.

Hello,

I am trying to add brand icon in “brand” filter but it does not show up. I am using electro mandras theme and the brand attribute is called brand.

I have tried adding php code i found here in the comments but I get this error:

“Cannot redeclare wpc_term_brand_logo() (previously declared in wp-content/plugins/filter-everything-pro/pro/wpc-default-hooks-pro.php:161)”

Any idea?

Hello dimitrakopoulospant

Thank you for purchasing Filter Everything PRO.

Indeed, if you get this error it means that this code already presents in the plugin. This code expects that your Brand taxonomy is 'pa_brand' or 'pwb-brand' which most popular Brands plugin use. And also this code expect that icon URL stored in the image term meta field.

If you theme or plugin or custom code for Brands uses another taxonomy name or another name for term meta field, you have to modify this code in wpc_term_brand_logo() in accordance with these names. Probably it will require a developer’s help if you are not familiar with PHP coding.

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