Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 16,183 sales
Recently Updated

Stepasyuk supports this item

Supported

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

9142 comments found.

Hi!

I’m trying to filter Portfolio items with tags and skills on an Avada based site. I have created portfolio items and assigned them tags and skills but the filter always shows a count of “(0)” and is not filtering properly. It seems that the filter does not recognize that there are terms assigned to my tags and skills. What can I do?

The page where I am using the filter is here: http://blaineslingerland.com/mhp/portfolio_category/projects/

I found a conflict with a plugin. The filter now shows post counts, but does not actually filter out portfolio items when terms are selected. I’d like to be able to select several terms to narrow down projects shown that contain each of those terms. Thanks!

Hi shrempff

Thank you for your credentials. I checked your site and realized that there was problem with URL prefixes in Filter Sets that were stored in Trash. Now I just deleted these Filter Sets from Trash and it works fine. But in future updates I will fix this bug. Until this, please clear your Trash from Filter Sets and do not leave them there.

Thank you.

Thank you very much!

Hi, how to make this work with Elementor? I’m trying to filter posts on a custom post type archive page, but the filter won’t display. I’m using Loop Grid and the query is set to current (I understand that means default in Elementor). I inserted the filter both with a shortcode and WP widget, but neither of them works. Here’s a video https://app.usebubbles.com/wCo6wNd3RCrrpL4NAsX7Vg/elementor. BTW, with Oxygen Builder, there is no problem and everything works fine with the same Filter settings.

It seems it’s just a problem with Elementor previews. I finally managed to visit the archive URL and everything works fine.

Hi SlavekT

Great. I”m glad that you were able to solve the issue by yourself :-)

Hi there, Great plugin, thanks!

I have a question… Got 2 filter sets: -One for post type ‘local_seo_pages’ with taxonomy ‘locations’ -One for post type ‘references’ with taxonomy ‘locations’

So ‘locations’ taxonomy is shared for both post types.

In the first filter set I have excluded a lot of locations. I want to exclude the same locations in the second filter set without doing it manually because this is >1 hour of work.

Can you please tell me where the excluded locations for a filter set are being stored? I can’t find it in any mysql table.

Hope it’s easy to copy/paste excluded terms from one filter set to another in phpmyAdmin? Can you please tell me which tables/columns to look because can’t find them.

Thanks in advance

Hi bobbeliebobtjop

Thank you for your warm words about the plugin.

Sure, these settings are stored in the post_content field of the post with ID that belongs to the filter ID (you can see it in the filter’s HTML code for example). And these settings are serialized array like this (real example):
a:20:{s:6:"entity";s:8:"taxonomy";s:6:"e_name";s:8:"pa_brand";s:4:"view";s:8:"dropdown";s:15:"show_term_names";s:3:"yes";s:5:"logic";s:2:"or";s:7:"orderby";s:7:"nameasc";s:7:"in_path";s:3:"yes";s:7:"exclude";a:1:{i:0;s:3:"360";}s:7:"include";s:2:"no";s:12:"range_slider";s:3:"yes";s:4:"step";s:1:"1";s:6:"search";s:3:"yes";s:13:"parent_filter";s:2:"-1";s:7:"tooltip";s:0:"";s:9:"more_less";s:3:"yes";s:10:"show_chips";s:3:"yes";s:8:"collapse";s:2:"no";s:9:"hierarchy";s:2:"no";s:19:"used_for_variations";s:2:"no";s:17:"hide_until_parent";s:2:"no";}

I hope this will be helpful for you.

Hello stepasyuk Can I use your plugin to query (or filter) for posts that DON’T have an excerpt? The excerpt should be empty.

Hello desbest

Thank you for your interest in Filter Everything PRO.

Unfortunately no, you can not filter posts by their excerpt status (filled or not). You can filter posts by Custom Fields, Taxonomy terms and post Authors.

Please add the feature in.

Ok, sure. I will consider this in future updates.

Hi Stepasyuk,

First of all I want to wish you a Merry Christmas and I want to thank you for making this useful plugin.

I do have one question though. Is it possible to change the SEO rule’s description to the hook: woocommerce_archive_description instead of woocommerce_after_shop_loop?

Hi MaxJoey. Merry Christmas!

Thank you for your warm words about the plugin.

Sure, you can change it with this code example placed in the functions.php of your active theme:
add_action('wp_head', 'wpc_add_filters_seo_description');
function wpc_add_filters_seo_description(){
    if( class_exists( 'FilterEverything\Filter\Container' ) ){
        $seoFrontEnd = FilterEverything\Filter\Container::instance()->getSeoFrontendService();
        $your_new_hook = 'woocommerce_archive_description';

        remove_action('woocommerce_after_shop_loop', [ $seoFrontEnd, 'showSeoDescription' ], 5);
        add_action( $your_new_hook, [ $seoFrontEnd, 'showSeoDescription' ] );
    }
}

This works perfectly. Thankss

Hi Stepasyuk,

I’ve created a new page for newly arrived products, then added WooCommerce product widget in that page. I also created new Filter set with the following settings

Post Type to filter: Products Where to filter? Pages >> My new arrival page

The filter shows up as expected but it does not work I assume I need to set product_type=product in somehow. Any thoughts how would I fix it?

Many Thanks in Advance

Hi sjuneidiit

It is popular issue and in my typical problems list it is written as: Filters widget shows the correct number of posts found, but posts are not filtered and remain the same. Possible reasons are:
- Wrong WP_Query selected in the “And what to filter?” field of the Filter Set. Please try to experiment with different WP_Queries in the dropdown.
- Cache issue (WP_Query is cached). You have to check and maybe disable your cache plugins or modules in your hosting provider dashboard.
- AJAX enabled but wrong value for CSS id or class of the Posts Container specified. Please, disable the AJAX feature, until you will ensure that filtering works in general.

Thank you so much! I have tried with different WP_Query and it worked

Hi, my license code isn’t working. Can it be that it should be activated first on your end? I ordered today,

Hi Treehugger

Thank you for using Filter Everything PRO.

Please, note that License key and CodeCanyon purchase code are different things. To set 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.

Ok. Thanks!

Is there a shortcode for show number of posts found?

Hi kitaristas

You can use this function to get number of posts found in code
/**
 * @return int|null number of posts found
 */
flrt_posts_found_quantity( $filter_set_id )

Hi Stepasyuk,

I tried this code but it’s not showing anything!

/* Show posts found number */ function get_posts_found() { if( function_exists( ‘flrt_posts_found_quantity’ ) ){ echo flrt_posts_found_quantity( $filter_set_id ); } } add_shortcode(‘posts_found_number’, ‘get_posts_found’);

Hi kitaristas

I would be glad to help you more with this, but unfortunately it is something out from the item support scope here on CodeCanyon. I can only fix bugs in my plugin or give you answers or advices related with the plugin. But to create custom shortcode you have to ask a developer to help you. I hope on your understanding.

Kind regards.

Hi there, I am using Elementor Pro with the new containers, and they seem to be causing issues with the filtering plugin. I am also having problems getting the filters to work correctly using the Elementor Hello theme. I have sent you a DM with more information, including credentials so you can take a look at the back end of the site to help me troubleshoot the issue. I feel like I am so close to getting it right, but am missing that last piece. Thanks!

Hi customtopperclub

Thank you for using Filter Everything PRO.

You did huge job but there were some small details to finish filters configuring. As I see now on the Shop page filters already work. Also I made them workable on your Practice page:
- I selected Product query #2
- I set “Alternative Location” – “The same page as for filtered posts”

I hope this will be enough for your goal.

Hi is there a way to use the range for the product attributes? like we do for price range. I have alot of “heights” which i really want to place in a range slider

Hi eaonflux

Yes, sure it is possible. Just enable option “Use for Variations” under More options section in your range filter for products.

AH no sorry i ment. I have a product attribute plant-height with multiple terms and i want this be shown in a range?

If these terms are numeric values, please create Taxonomy numeric filter by this attribute and it will be shown as range slider.

Hello – having an issue with the mobile filter display not showing up on a page. We’re using filter everything on our WooCommerce store and that works fine, but when we have it set up on a separate page (using a different post type) the mobile filtering display doesn’t work – it just shows the regular filter options with no option to toggle the filters. I’ll send logins via PM. Thank you!

Hello electrickiwi

Thank you for using Filter Everything PRO.

I checked your site and realized that Filters button that collapses/expands filters now visible and works on mobile. It looks like you issue already solved.

Please, let me know.

We managed to find a solution for this – thanks!

electrickiwi

I’m glad that you were able to solve it by yourself :-)

Hello @Stepasyuk, I’m trying to make a filter with custom fields on woocommerce products. When I fill in for example an engine type on the product in de ACF-field, and I make a filter with this _engine ACF, the filter on the frontside shows the ACF fieldname instead of the label. How can I solve this?

Hi Milcraft

Thank you for using Filter Everything PRO plugin.

If you need to display ACF field labels instead of values, you can add to the functions.php of your active theme appropriate code from examples below. You also have to edit this code in accordance with your ACF field meta key(s). Here are these codes for:
1. ACF field is Taxonomy object – https://gist.github.com/wpserve/0634299bcc67d03bef77119dd20c86e7
2. ACF field is field with choices – https://gist.github.com/wpserve/48277fc0320239d05b1d6e2c4da3db20
3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56

It seems in your case you have to use code #2

Hello Stepasyuk, I tried the snippet. I changed it to (enginetype) on the 7th line. I still get 1:electric instead of just “electric”

add_filter( ‘wpc_filter_post_meta_term_name’, ‘wpc_acf_labels_instead_of_values’, 20, 2 ); function wpc_acf_labels_instead_of_values( $term_name, $meta_key ) { // your ACF-field meta keys $keys_with_labels = [‘enginetype’]; }

if ( in_array( $meta_key, $keys_with_labels ) ) {
    if( function_exists('get_field_object') ){
        $field = get_field_object( $meta_key );
}
$new_choises = [];
    if( isset( $field['choices'] ) && ! empty( $field['choices'] ) ){
        foreach ( $field['choices'] as $key => $value ){
            $new_key = mb_strtolower($key);
            $new_choises[$new_key] = $value;
        }
}
$term_name_test = mb_strtolower( $term_name );
    if( isset( $new_choises[$term_name_test] ) ){
        $term_name = $new_choises[$term_name_test];
    }
}
return $term_name;

Hi Milcraft

It seems your case is more complex and you have to ask somebody who is expirienced in development to help you. Unfortunately at this point CodeCanyon item support license has limits and such service can not be provided under this license.

I will be glad to help you with other issues or questions that included in the CodeCanyon item support policy scope – https://codecanyon.net/page/item_support_policy

Hi again, I tried to translate the filter sets with wpml and even though i made the filter sets translatable i am not able to transate it. Can you help?

Hi nmoussas

Please, check what exactly page is specified in the “Where to filter?” of your translated Filter Set version. It should be also translated page. For example EN Filter Set for EN Shop page, IT Filter Set for Italian Shop page and so on.

The page is a translated one, I am using product categories. The strange thing is that the filter set of the first page is showing in all languages. How can I avoid that?

Hi nmoussas

Such behaviour is evidence that your Filter Set is not translated. And that’s why it is displayed for all languages. Please, create translation for your Filter Set for the appropriate language.

Hello! I have a problem with license key for Pro version (it’s invalid in all of the projects). Is the license given only for a year or do I need to update something? I just haven’t seen the exact conditions for working with the license with your plugin anywhere. Thank you for support!

Hello Alexwirt

License is valid for two websites only – for one Production site and for its Dev copy. And license is valid lifetime. It includes ability to get plugin updates lifetime.

Please, note that License key and CodeCanyon purchase code are different things. To set 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.

Hello! Love the app. But i noticed then when i Select a Parent Category, it doesn’t list the children. I want the parent so show full count incl children aslo. I saw a comment from a user about option “use for variations” but i don’t find that anywhere. Can it be done? thanks

Sent pm with logins

Hello kattouf

Thank you for your credentials. But it seems now the user you created for me has no admin permissions. Please, make it administrator on your site and let me know here.

For the moment it looks for me as you have specific PHP code in your template that hides many selected from DB posts (federations) before to show them on the page.

Sorry!, my partner disabled it, Its active now. Yes i suspect the issue is related to theme, but its the very popular Newspaper theme by tagdiv, would be great if we can figure it out.

hello,

Can we add a breadcrumb schema for the filter?

Hello ahmetcem1996

This is obviously a misunderstanding, since custom coding is not included in the CodeCanyon’s item support. I can only give you advices, examples of functions that could be helpful in solving your task but create such breadcrumbs you have to by yourself or to ask a developer to help with this.

Thank you. Regards.

thank you for the information. I will talk to my own developer again. Can I get support from you for an extra fee for breadcrumb in case my developer cannot do it? (like upwork?)

Hello ahmetcem1996

I would be glad to help you more with this but unfortunately I have no time for such paid development. But I’m sure there are a lot of cool WordPress specialists on Upwork and they can help you :-)

Regards.

How to make the collapsible filter expand and collapse with a simple slide out animation?

Hi kitaristas

Thank you for using Filter Everything PRO.

It is possible in general and it requires to write some amount of CSS code to add such animation. I would be glad to provide you with such code, but unfortunately I have no such example and its possible writing is something out from the item support scope here on CodeCanyon. You can ask someboby familiar with CSS to help you to slove this task.

I have created one filter set and i added using sidebar widget but i want to display same filter set on each singal product details page. plugin allows add filter but on individual Singal product page, but it does not allow to add same filter every signal product page on WooCommerce. please help me on this.

Hello aorbisinc1

Thank you for using Filter Everything PRO.

For the moment it is impossible to add the same Filter Set to a list of single pages. Only to add individual Filter Sets to individual pages. But as some number of customers ask me about this, I will add such option in the future updates. I think this will happen approximately in 1 months.

We have an error using the plugin from mobile.

In the store, when you scroll down and then go back up, and when you click on the filter button, it bugs itself and does not display the menu (I am willing to send you photos of the error by email if you like)

I await your response, thank you!

I found a possible solution with custom javascript code, no need to reply thanks!

Hi LeandroDyD

Thank you for purchasing the plugin.

I’m glad that you were able to solve the issue by yourself :-)

Let me know, if you will have any questions.

Hi, I created the filter in the plugin. But, when I go to display the filter on a page using Elementor page builder. I used the documentation here (https://filtereverything.pro/resources/shortcodes/) and used the [fe_sort] shortcode to get the ID of the filter. I am getting a message that says there are no sorting widgets on this site yet. Why isn’t this displaying?

Hi lorruche

Thank you for using Filter Everything plugin.

Did you create Sorting Widget before trying to display it with shortcode? You have to create such widget and place it in any widget are even in the inactive widgets area and only after this it will be shown with shortocode. Also on the page, where you want to show it there should be the Filter Set pointed to it.

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