Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,686 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8967 comments found.

Hi, the filter works perfect, but how do I remove the   added to the label?

  • <input type=”radio” data-wpc-link=”/themes/theme-documentary/” name=”product_tag” id=”wpc-radio-taxonomy-product_tag-75”> <label for=”wpc-radio-taxonomy-product_tag-75”>Documentary  </label>
  • Thank you

    Hi thomas6791,

    Thank you for choosing Filter Everything PRO.

    Can you please send any screenshots and links to the page with the issue so we can check it? The description is a bit confusing.

    Best Regards,
    - Victor

    Hi, I would like to ask for support. I currently trying to sort the terms of a filter in a very specific order that is not ABC. How do I adjust that? I tried the Default and Term ID with no success. Can you help?

    Hi thomashubscher5,

    Thank you for choosing Filter Everything PRO.

    There is the possibility to use the ‘wpc_terms_before_display’ hook to sort terms to your needs via code modifications. More information can be found here – https://filtereverything.pro/resources/hooks/#terms-before-display-hook

    Here is an example of the code:

    add_filter('wpc_terms_before_display', 'wpc_sort_terms_as_needed', 10, 2);
    function wpc_sort_terms_as_needed($terms, $filter){
        // pa_color - is desired taxonomy
        if ($filter['e_name'] === 'pa_color') {
            // Define the custom sorting order
            $customOrder = array(
                'red',
                'blue',
                'green',
            'purple'
            );
    
            // Create an associative array to store term objects
            $termMap = array();
    
            // Populate the term map
            foreach ($terms as $term) {
                $termMap[$term->slug] = $term;
            }
    
            // Sort the terms based on the custom order
            $sortedTerms = array();
            foreach ($customOrder as $slug) {
                if (isset($termMap[$slug])) {
                    $sortedTerms[] = $termMap[$slug];
                    unset($termMap[$slug]);
                }
            }
    
            // Add any remaining terms to the sorted array
            foreach ($termMap as $term) {
                $sortedTerms[] = $term;
            }
    
            return $sortedTerms;
        }
    
        return $terms;
    }
    

    and this is the results – https://prnt.sc/pYxJUGe6tXVM

    Best Regards,
    - Victor

    Hi Victor, I don’t have much experience with programing, how do I add this hook?

    Hi thomashubscher5,

    You write the code in the functions.php file of your theme.

    If you do not have the required programming skills, we would recommend hiring a developer using a platform like Upwork to do it for you.

    Please note, that support is focused on assisting with the usage of existing features, troubleshooting any issues related to our plugin, and providing guidance on it. While we are more than happy to provide instructions, and examples on how to implement custom functionality, we are unable to write custom code or create bespoke solutions for individual users. The custom coding falls outside the scope of the support policy.

    Best Regards,
    - Victor

    Hello Sir, we have a website with variable products. Now we want to add the filter option to show the color attribute. We are designed the product listing and product archive by using elementor widget. So our concern is that if we use this plugin can we show the specific colors images in the product listing page. Like, if I choose black color then all the black color products will be in the shop page witb black color of product’s image.. Thank u

    Hi shakirshowrov26692,

    Thank you for your interest in the Filter Everything plugin.

    Unfortunately, the current version of the plugin does not have the option you are looking for. However, rest assured that it will be included in the future updates. We will notify you in this comments thread when it will be released. Thank you for your understanding and patience.

    Best Regards,
    - Victor

    Hey Viktor, is it possible to disable the POPUP Filter Widget on Desktop? I have set up the Filters on the Left Sidebar, I only need the Popup on Mobile.

    Hi Daniel,

    We have checked the site, and we added a small CSS fix in the Filters -> Settings -> Experimental -> Custom CSS

    There are some styles that rewrite the plugin styles that’s why it was displayed like that.

    Best Regards,
    - Victor

    Great thank you!

    Hi Daniel,

    I’m glad that your problem was solved.

    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

    Hi!

    I see that your plugin slow down the experience with the usability of the site. Take a look at this page: https://fontanetonew.andstage.it/catalogo-prodotti/fontaneto/

    The filter took too much time to work.

    The site is better optimize (Siteground hosting, WP Rocket active) but the filter is too slow to work.

    Could you help me?

    Thanks!

     

    Hi sbel123,

    Well, you can optimize the static pages, etc. to make everything fly, but when it comes to the database queries and so on on the page, the server does its job relying on its hardware. If the server hardware is average and the database is not optimized the server ping rate is not the best, you will have to wait some extra time in order to see the filtered items.

    Try to turn off AJAX and check how fast it will work.

    Best Regards,
    - Victor

    Hi Victor.

    The search field within the filter works until you type more than three letters, then the live results disappear. Why is this / where can I change this? It would be nice if the visitor could type more than three letters so that they can search as specifically as possible. Thanks in advance!

    Hi Funckecreatievepartners,

    Alright, now we see the issue. When you are trying to find a filter term it is not searching correctly. There can be a couple of things that can cause such behavior:

    1) Plugin conflict, we recommend turning off all of the plugins leaving only the FE plugin, and checking if it is working correctly. If yes, turn on plugin by plugin to understand which one is causing the issue.

    2) Custom code theme code or template modifications. Remove all custom code and check the workability, change a theme to 2021 default one to check if it is working correctly.

    Following these steps, you can localize the root of the issue and remove it.

    Best Regards,
    - Victor

    Hi Victor,

    Unfortunately we are not able to turn off the plug-ins or remove custom code since these are all necessary for the website to run correctly.

    Another example: if I type in “Bank” I get two results (ING Bank and Rabobank) but miss a third one (ABN AMRO Bank). But when I hit the ‘Enter’ key, ABN AMRO Bank does show up but now the other two don’t. I tested it with other words too and I can’t find a pattern (case sensitive, spacing, etc.), it just seems random even though everything in de back-end is build the same way. Is it possible that this is a bug in the plug-in and do you maybe have any other solution?

    Thanks in advance, again!

    Hi Funckecreatievepartners,

    No, it was tested hundreds of times and was used but a lot of users, and everything is working correctly for them. We tested it on our back with the Avada theme and everything is working correctly as well – https://prnt.sc/ouI5KtaVi2aD here with a long text – https://prnt.sc/0NrFtAnrS49w here same long text just with a wrong letter to test if it will show or no – https://prnt.sc/QSDu3xPuDqDC as you see everything is working as it should.

    So it is either a plugin conflict or a custom code.

    Best Regards,
    - Victor

    I can’t find information about duplicate filter is this future is avilable or it’s comming?

    Hi tdutkowski,

    Thank you for your interest in the Filter Everything plugin.

    We have exciting plans to incorporate this feature in the near future. However, we are unable to provide a specific release date at this time.

    Best Regards,
    - Victor

    Ok, and is it possible to make a copy of the filter somehow through phpmyadmin? Or is it more complicated than that? I ask because I have a lot of filters to create and they differ from each other only in the place of occurrence and possibly some one parameter.

    Hi tdutkowski,

    The process of making a duplicate is rather complicated, and even if there are plugins available to make it, we cannot guarantee the absence of workability issues and errors. As such, we are unable to provide a definitive answer regarding its feasibility.

    If you have strong development skills, completing the task may be possible. However, it is crucial to consider potential complexities that may go unnoticed.

    Best Regards,
    - Victor

    Hi,

    I use the PRO version and I tried with “Custom Field Numeric” but I can’t find any “meta key” or “numeric taxonomy” to fill the “Meta Key” field to build a price range slider. I have a real estate listings website where the price of each listing, in listing attributes, is written as Number and set to be displayed in the filter form as Number Range . I can’t set up the price filter with “Filter Everything — Product Filter & WordPress Filter”. Is something missing, something is not set correctly? What could I do to solve this problem? Can you give me some directions?

    Thank you,

    Hi alex14012005,

    You can use links for the screenshot or you can PM us and we will send a respond so you can send it via email.

    Best Regards,
    - Victor

    Yeah, it is more understandable now, could you provide credentials to the wp-admin dashboard following this document so we can check it, if it is possible or not?

    Best Regards,
    - Victor

    New functionality?

    I have a page with a map with CPT “X” and below I have a list of post of CPT “X”. When I put the filter, I have to choose between one of the two queries, the map query or the list query.

    In the future, could both queries be chosen? So in this way, in the same filter of the same CPT it would serve to filter the CPT “X” of the map and the list of CPT posts at the same time…

    Hi bcnmoda,

    Yeah, in the future we might add anything like that. If you have the same filter sets you can place them both on the same page and choose different queries it might do the trick for you. But it wasn’t tested like that. The key here is to have the same filters in both filter sets.

    Best Regards,
    - Victor

    wooow, it works!!! I have created the two equal filters, only one with query 1 and the other with query 2. I have put the two shortcodes on the page, one hidden, and with the other filter it filters both queries at the same time!!!

    Hi, I just purchased the pro plugin but when trying to activate I get “Unknown error.” Best Marie

    The license was activated. Also, we implemented a quick CSS fix for the mobile mode in order to display everything correctly. It looks like some conflict with theme styles or any custom CSS. You can check the fix in the Filters -> Settings -> Experimental -> Custom CSS.

    Best Regards,
    - Victor

    Thanks a lot, great support!

    Hi Marie,

    I’m glad that your problem was solved.

    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

    Hi,

    I just bought your plugin and it looks awesome but I have not gotten it to work just yet. Here is a link to see what happening: https://ontwikkelink.nl/hoc/shop/

    Basically, the filter works in the sidebar but does not show the result in the product list.

    Also, I do not get it to show up on mobile, did I forget something?

    Hope you can help me :)

    Hi qoqmedia,

    Thank you for choosing Filter Everything PRO.

    Please try to choose another query in the “And what to filter?” dropdown in the filter set settings.

    Are you using a shortcode to display the filters widget? If yes you can use the [fe_open_button] to display the filter widget button. But in general, the filter button is there – https://prnt.sc/m-UPEQnB_8k6 it is just hidden.

    Best Regards,
    - Victor

    I need to Disabled Ajax only on destop. Can you please help me on that.

    Hi if (is_search() ){ add_filter( 'wpc_get_option', 'wpc_enable_ajax', 10, 2 ); } function wpc_enable_ajax( $option, $key ){ if( $key === 'enable_ajax' ){ return ''; } return $option; } I have try to disable the Ajax in desktop and I used this code in Function.php But it’s not disable the Ajax. Can you please check and do the needfull. https://emerituslearning.com/?post_type=program&s=data

    Hi can you help me on above propblem

    Hi logakarthikeyan,

    Although this falls outside the support policy’s boundaries, We write the code for you:

    function custom_wpc_get_option($value, $key) {
        if (is_page(233) && !wp_is_mobile()) {
            if ($key === 'enable_ajax') {
                echo "DESKTOPPPPPPPPPPPPPPPP";
                return '';
            } 
        }
    
        return $value;
    }
    add_filter('wpc_get_option', 'custom_wpc_get_option', 10, 2);
    

    Best Regards,
    - Victor

    Hi I have just purchased the pro version. However I’m expereincing setup issues.

    I would like the filters to be on all of the category pages which I’ve setup.

    1. The issue is that the button doesn’t work. When the filter button is pressed nothing happens.

    2. The second issue is that all the filters are showing without having to press the filter button, I would like these filters to only display when the filter button is pressed.

    Thank you.

    Hi ovacreative1,

    Thank you for choosing Filter Everything PRO.

    Please fix this error first – https://prnt.sc/B_o8N0AWQ7q0

    Mixed Content: The page at ‘https://v3builtytemplate.co.uk/product-category/perfume/' was loaded over HTTPS, but requested an insecure stylesheet ‘http://v3builtytemplate.co.uk/wp-content/uploads/cache/filter-everything/08ea94d06b25afc8eb9ddde6e5977258.css?ver=6.3.1'. This request has been blocked; the content must be served over HTTPS.

    You can turn on “Apply Button” mode from filter set setting here – https://prnt.sc/8wSBWrKxgs_K

    Best Regards,
    - Victor

    I have seen reading comments the different options for common WordPress pages (where to filter): https://prnt.sc/lYsMuzjz75YN

    But, does it also support CPT? Because when I choose the CPT only the search results page appears, nothing more…

    I have reviewed the documentation: https://filtereverything.pro/resources/filter-set/

    Where to filter? You define a page or list of pages, where this Filter Set will be applied.

    But it’s not clear to me if I can also filter CPT on the home page… (I created the CPT with ACF)

    That’s it, I saw the answer in another comment. I had to specify a static page instead of the blog post.

    1) You created a “Filter Set” and want to place it on the home page with “Apply Button” mode. (Quick note by ”Home” page you mean the page that you specified in the WordPress admin dashboard settings?) If yes, then in “Where to filter” you need to choose “Common WordPress pages” -> “Homepage”. If it’s just a page with the name ”Home” you need to choose “Pages” -> ”Home”.

    Hi bcnmoda,

    We are glad to hear that the issue was resolved.

    Best Regards,
    - Victor

    Hi,

    We are noticing some duplication of the main category description appearing on new filtered pages.

    For example, we have a main category, with a description of the category page (appears at the top under the title) at /category/furniture

    When the SEO filter is applied it creates a unique page, and meta data which is great. However, it duplicates the main category description. An example of the filter being applied to furniture being: /category/furniture/color-black – both this page and the main category page have the same description at the top. Only the main category page should have this to avoid duplication.

    Is there a way to stop or remove the duplicate main category text/description showing on new filter pages?

    Thank you

    Hi paulsf,

    Plugin speed – is fully dependent on your server. If you are facing any performance issues it is crucial to understand that the filtering speed depends on the next parameters:
    - server CPU
    - server RAM
    - number of posts to filter
    - number of filters and terms
    - number and quality of plugins you use
    - cache adjustments on a server
    - plugin’s code optimizations, internal cache (this was already done for the Filter Everything)

    To enhance the filtering process, you can optimize any of the parameters provided in the list above. Utilizing OPCache and optimizing the database are some of the ways to achieve this.

    Best Regards,
    - Victor

    Hi paulsf,

    Update to the previous answer.

    We would like to ask you to demonstrate the page speed with the plugin enabled. You can send a link to the test page of your site. Of course, you can do it privately if you don’t want to share it publicly.

    The test results could tell what specific problem is present – whether styles, JS, or images, or maybe the response speed of the web server, but it also depends very much on the server and its settings, not the plugin.

    Best Regards,
    - Victor

    Hi Victor,

    Accidently posted this as a comment, as opposed to a reply.

    The code moved the SEO description to above the products, however the original WooCommerce archive descriptions are still there too. The SEO descriptions now sit underneath the filter chips.

    Is there a way to amend the code so that the new description simply replaces the original description on filtered categories?

    The code supplied:

    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’ ] ); }

    Hello,

    I’m trying to set a filter for price but have tried the suggested meta keys and they don’t work. The prices are set in Variations and are listed under Regular Price – do you know if there is a different meta key for that?

    Thanks.

    Thank you for the credentials, but the provided credentials don’t allow us to use the admin dashboard. It is just some type of user credentials. Can you send the ones that will allow us to use the admin dashboard? So we can actually test the filter set setting and so on.

    Best Regards,
    - Victor

    Hi, I’ve changed the user to Administrator now.

    Hi TheWebWizz,

    For the purpose of testing, we have created “variable products” and included them in the “group product”, as can be seen here – https://prnt.sc/jEVoAo9V1aFb

    The group product’s price is determined by the minimum price of the “variable products”. But the price slider filtering mechanism appears to be functioning properly and displaying accurate information for this “group product price”. However, it appears that in your case, this feature is not functioning correctly. This may be due to the presence of additional plugins or other factors that are causing discrepancies in the values stored in the database for these products.

    Unfortunately, we didn’t identify the exact cause of this issue on your site, as it would take turning off all of the plugins, checking the database fully, and so on. Nonetheless, we can confirm that our plugin works seamlessly with a clean installation of WP with Woo and our plugin, as shown here – https://prnt.sc/w8nxpVomX_GW

    Furthermore, it should be noted that if the price range slider is set to more than 60, the group product will not be displayed, as indicated here – https://prnt.sc/WmbQsv0xwkvf So in your case this may be some type of a conflict with other plugins or custom code or messed up products data in the database (which is very common while doing site migrations or other manipulations).

    In general, we would advise using “variable products” instead of “grouped products” in order to accurately filter products by price. Unlike “grouped products”, “variable products” display the full range of prices, allowing for more precise filtering.

    Best Regards,
    - Victor

    Hello, I have an issue with random numbers on the filter that aren’t proper filter names. I can share some screenshots if that helps.

    You should install it without deleting the free version. But if you deleted the free version then it deleted all of the filters.

    Not sure if it will fix it, but more likely we would need to check it by ourselves to understand the problem But first create a filter set with the PRO version and test it.

    Best Regards,
    - Victor

    I have kept the free version and install the pro version and now it’s removed the filter from certain pages. Also still have the number issue.

    Hi littlebigbox,

    Here is what can we do, please write a list of issues you are facing, and provide the credentials to the wp-admin dashboard following this document so we can check it all and fix.

    Best Regards,
    - Victor

    Hi,

    Is this the plugin that adds the following code in the .htaccess ?

    RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{2,5})$ RewriteCond %{REQUEST_URI} !(.)/$ RewriteRule (.[/])$ /$1/ [L,R=301]

    It blocks page from being updated in the admin area. If i remove the code out of the .htaccess, it works. I tested with vanilla wordpress installation and storefront theme.

    No error appears, just the page or post does not update.

    Thanks

    Hi DailyLost,

    No, our plugin doesn’t add anything to the .htaccess file at all. More likely this is doing some other plugin or custom code or anything else. So you need to check on your end which plugin exactly doing it and try to fix it so it won’t cause workability issues.

    Best Regards,
    - Victor

    In Mobile view Filter apply, cancel not working properly. For first time when We click on any Filter its asking to appy. When We apply only the Programs are dispalyed. But second time when we click on anyu check box its appling directly with out clicking the Apply Programs are appearing. Can you please help me on It. URL: https://emerituslearning.com/?s&post_type=program Check in mobile View

    1. Click on FIlters 2. Select on Any Topics -> Click on Cancel (result(No topics will Appear)) 3. Select on Any topics -> Click on Apply (Result(Seleted Topics will Appear)) 4. Select on Any Topics Again – It automatically Bring the Program With outAppying the Apply Button.

    Check and please Provide me the solution

    Hi logakarthikeyan,

    We have checked the page and followed your instructions, but everything is working well as long we don’t hit apply nothing is applying from filter terms. Not sure what is the issue you are experiencing. Maybe you did use AJAX and update the whole page which can cause such issues.

    Best Regards,
    - Victor

    After clicking the Appy button program apperaing that the wat First time its working. But At the second time when click on the Check box. Its bringing the Program automatically. Without clicking the Apply Button.

    We have clicked apply as you can check here – https://prnt.sc/mvYRQ0Ad5dOe

    Now we will choose some other term but click cancel – https://prnt.sc/vQbECi8Xemwn As you see, nothing has changed, now we click apply – https://prnt.sc/PGuArmUATBe0

    So a bit confusing. What’s going on? Maybe we just didn’t understand the issue you are facing. Can you please provide more details on it?

    Best Regards,
    - Victor

    Hi how to Appy the Ajax only for the Mobile.

    Hi logakarthikeyan,

    If the “Apply Button” mode is enabled, it will work as AJAX on mobile devices. But it will also be in the Apply Button on the desktop.

    Also, you can change it with a hook so that there is AJAX on mobile devices, but not on the desktop. The option is called ‘enable_ajax’ and there is a hook ‘wpc_get_option’ that passes through all the options there you can set the desired value depending on the device for the ‘enable_ajax’ option.

    Here is an example of how you can work with the hook:

    // For example you need to enable it on the page with ID 123
    if( is_page( 123 ) ){
            add_filter( 'wpc_get_option', 'wpc_enable_ajax', 10, 2 );
        }
    function wpc_enable_ajax( $option, $key ){
        if( $key === 'enable_ajax' ){
            return 'on';
        }
        return $option;
    }
    

    You need to write your own custom code to turn it on only in mobile mode and turn it off in desktop mode. If you don’t have enough skills in PHP and WP, we can recommend hiring a developer to do it for you, using such platforms as Upwork.

    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