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, I have a problem with an energy label filter. It’s an ACF field, with values like: A, A+ or A++.

Somehow it only shows A++ in the filter, but in the list of posts are also posts available with A and A+.

Hi diederikk

Please read this documentation page about ACF – https://filtereverything.pro/resources/acf/ the code is not needed to display labels instead of values it’s already working from the box in the latest version of the plugin.

Best Regards,
- Victor

Excellent, thanks for the quick reply. I changed the ACF field to label & value, and it works!

We are glad to hear that everything is working well.

Best Regards,
- Victor

Hi, I have one more query, is there way to enable multi selection in dropdowns?

Hi srini16

Currently, there is no out-of-box solution for that. You can make it look like here – https://demo.filtereverything.pro/horizontal-views/color-blue/brand-hm/#3-columns

Here’s how you can do it. Go to the filters -> settings -> experimental -> custom CSS and add next styles:

.wpc-filter-set-2450 .wpc-filter-title{
  margin-bottom: 0;
}
.wpc-filter-set-2450 .wpc-filter-content{
  position: absolute;
  left: 0;
  right: 0;
  background: #fff;
  /*box-shadow: 0px 5px 5px rgb(0,0,0,0.1);*/
  z-index: 10;
  border-radius: 2px;
  padding: 20px 20px;
}
.wpc-filter-set-2450 .wpc-filter-has-selected .wpc-filter-content,
.wpc-filter-set-2450 .wpc-opened .wpc-filter-content{
  border: 1px solid #cccccc;
  border-top: none;
}
.wpc-filter-set-2450 .wpc-filter-header{
  padding: 9px 19px 10px 19px;
  border: 1px solid transparent;
  border-bottom: none;
}
.wpc-filter-set-2450 .wpc-filter-header{
  border: 1px solid #cccccc;
}
.wpc-filter-set-2450 .wpc-filter-has-selected:not(.wpc-closed) .wpc-filter-header,
.wpc-filter-set-2450 .wpc-opened .wpc-filter-header{
  border-bottom: none;
}
.wpc-filter-set-2450 .wpc-wrap-icons{
  line-height: 1.5;
}

Then go to the page where you have your filters widget on and inspect the filter widget in order to find its ID – https://prnt.sc/9j3SiL-VXk3f and use it in this CSS instead of 2450 with your ID

Inside the filter set settings, you need to enable the “folding” option for the filters from the “more options” and use the checkbox, labels, or radio button in the “View in Widget”.

Also, here is a code to make it close when clicking on any other area, and when clicking on the next dropdown, you can place it in the functions.php file of your theme:

function add_filter_toggle_script_to_footer() {
    ?>
  <script>
    jQuery(document).ready(function($) {
        function initFilterToggles() {
            // Get all filter collapsible sections
            const filterCollapsibles = document.querySelectorAll('.wpc-filter-collapsible');

            filterCollapsibles.forEach(collapsible => {
                const button = collapsible.querySelector('.wpc-filter-header button');
                button.addEventListener('click', function(event) {
                    event.stopPropagation(); // Prevent propagation to parent elements

                    // Toggle open/close classes
                    if (collapsible.classList.contains('wpc-opened')) {
                        collapsible.classList.remove('wpc-opened');
                        collapsible.classList.add('wpc-closed');
 } else {
                        // Close all other collapsibles
                        filterCollapsibles.forEach(otherCollapsible => {
                            if (otherCollapsible !== collapsible) {
                                otherCollapsible.classList.remove('wpc-opened');
                                otherCollapsible.classList.add('wpc-closed');
 }
 });

                        // Open clicked collapsible
                        collapsible.classList.add('wpc-opened');
                        collapsible.classList.remove('wpc-closed');
 }
 });
 });

            // Close collapsibles if clicked outside
            document.addEventListener('click', function(event) {
                if (!event.target.closest('.wpc-filter-collapsible')) {
                    filterCollapsibles.forEach(collapsible => {
                        collapsible.classList.remove('wpc-opened');
                        collapsible.classList.add('wpc-closed');
 });
 }
 });
 }

        // Initialize filter toggles on page load
        initFilterToggles();

        // Reinitialize filter toggles after AJAX update
        $(document).on('ajaxComplete', function() {
            initFilterToggles();
 });
 });
    </script>
  <?php
}
add_action('wp_footer', 'add_filter_toggle_script_to_footer');

Best Regards,
- Victor

please check your mail

Hi srini16

Thank you for the credentials, when we make debugging we will let you know what could be the issue if we could find anything.

Best Regards,
- Victor

Hi

I purchased your plugin believing we could filter by Date from and ACF field.

But when I setup the Filter on the field it won’t let me select Date Range? it is greyed out am I missing a setting somewhere.

Any assistance would be appreciated

As far as we know, it should be released in a couple of months.

You can request a refund from the account where the plugin was purchased, but we recommend not rushing into it because, with a lifetime license, you basically have lifetime updates. And you can filter any CPT with it, so when it comes out, you can download the new version and work with it.

Best Regards,
- Victor

I understand that it is a life time warranty but unfortunately I need the feature, now. I have had a look in Envarto where I purchased the plugin and there is no option to request a refund. Do you know where in my account I can request a refund?

We’re not entirely sure about this, as as a support team we’ve never made a refund request, so it’s best to refer to the Evanto FAQ or ask Evanto Support for this information, as we do not want to provide any false information on it.

Also, please note that the support team is not working on the refunds, usually you should get a response around a week or two.

Best Regards,
- Victor

PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /srv/htdocs/wp-content/plugins/filter-everything-pro/src/WpManager.php:1332

Hi srini16

Can you please send the credentials to the wp-admin dashboard following this document so we can check it?

Best Regards,
- Victor

his support, i have sent the credentials to your support – we need help due to the Filters not working on category and tag pages. thanks

Hi eeaustgroup

Thank you for that, the answer was provided via Email with the link.

Best Regards,
- Victor

i got the email but without a link.

What we meant is the link to the category page. So if the category page displays only 3 products and all of the categories applied on those products are the same as this category page, then others will not appear in the filter. If there is at least one product with another category applied to it as well, then it will be displayed in the filters.

Best Regards,
- Victor

Hello. Is it possible to not have a reload with the url attached for every filter result? I’d like to keep the results unsearchable.

No, that’s impossible, but you can configure Firewar to not allow the bots to crawl on the filtered pages with wildcards like mysite.com/shop/* and the rest of the links, so everything that goes beyond * will not be crawled.

Best Regards,
- Victor

I see. Is it possible to load the page with the filter inside a modal window?

Yes, all you need to do is place the shortcode [fe_widget] in your modal window. And on the pages where the filter set is applied to the page, it will appear there. But if you have multiple areas where the filter set should appear, it will appear only in one place, not in all of them at the same time.

Best Regards,
- Victor

hi.. facining activation issue and shows already used for 2 sites. please reset this? let me no how to identify which sites am i using!!!

Hi srini16

Please send us your license key via PM – https://codecanyon.net/user/fe_support so we can deactivate it across all of the sites, and you can activate them only on the needed ones.

Best Regards,
- Victor

Done! You can activate it on the needed sites.

Best Regards,
- Victor

I have created to filter sets on my site – one for page 1 and one for page 2. It works on page 1 but not on page 2. It’s the same query and the same shortcode, I have added to a shortcode box. It just shows the “No one Filter Set is related to this page. You can configure it in the Filter Set -> “Where to filter?” field.” error. I have tried assigning the page (the frontpage), and I have tried assigning it to Any Page page, with no luck. It detects my query fine in the filter set page. From what I can tell, it should be working with these settings. And it works on a different page, so the setup of the filter should also be fine. I’m using shortcode [fe_widget] to display the filter. Any suggestions to what I can try next? Thanks in advance.

Thanks – links and credentials sent :-)

Hi thomas-pr3

We have checked the site and configured it correctly. One of the pages is a homepage so in order to make it appear on the homepage, you need to choose Common WordPress page + Homepage.

Best Regards,
- Victor

Thank you very much for your fast support :-)

Hi, I’m having an issue with the Pro plugin. I’ve set up custom filters that work well on their own. However, when I use Elementor’s page builder to add a posts widget alongside the Filter Everything widget, the filters stop working as soon as I specify post categories in the Elementor widget. If I don’t choose specific categories in the Elementor widget, the filters work fine. It seems like there’s some interference happening. Is there a workaround for this?

Hi Citiblu

Thank you for choosing Filter Everything PRO.

Can you please send the credentials to the wp-admin dashboard following this document so we can check it?

Also, please send the link to the page with the issue so we can check it right away.

Best Regards,
- Victor

We are encountering a fatal error related to memory allocation, and we suspect that the issue may be caused by the Filter Everything plugin. Could you provide any solutions or suggestions to address this problem? this causing page breaking where we use filter everything plugin

Hi srini16

Thank you for choosing Filter Everything PRO.

If it is physical memory on the hard disk, you can disable debugging logs, which in some cases can generate a log that takes up to several gigabytes.

If the issue is related to the PHP memory you might want to increase it on your site.

If it is connected to the RAM, in this case, we are not sure what we can recommend as we do not know the specifications of your server and we do not know how exactly it is happening and how you managed to fix it to run again. If you provide more information on it we might help you to fix it.

Best Regards,
- Victor

“Error: Set was not saved.” When trying to set any product filter (Product Category, Product Type, etc..) It’ll save when I first set it up, but if I try to add another filter/etc, it’ll give me the error above. It also grays out the filter options for Product category/product type/etc… (Other fields stay normal color)

Other filters seem to working as expected though.

There were deprecated functions from the 7.4 and everything rushed to the 8+ so we had to fix it, perhaps it can be the case. But we have on our testing site 7.4.33 as well and everything is working well. So it must be some server settings.

Best Regards,
- Victor

Yeah, hard to say. Though, thank you for looking into the issue. Everything seemed resolved now! :)

Do you still need access to any of the staging site/ftp/etc for testing? If not I can shut those down.

Thanks

Hi nathanh61

No, if everything is resolved, we don’t need any access, we are happy to hear that everything is working well.

Best Regards,
- Victor

Hi Victor,

My question relates to the use of checkboxes.

I have discovered that these generate a new URL e.g. /page-where-the-filter-is/new-page/

I don’t have a page for the ”/new-page/”, so obviously it returns a 404.

Numeric sliders work perfectly because they generate a dynamic URL.

What is the correct set up with checkboxes?

I will check through the documentation, but you might get back to me before I find it.

Cheers Tom

Hi Victor,

I seem to have fixed it by adding

define( ‘FLRT_PERMALINKS_ENABLED’, false );

to my functions.php (using the Code Snippets plugin).

Cheers Tom

Hi Tom

This issue can happen if you are not using unique URL prefixes. So if you have a slug new-something and created a filter with the Prefix new-something1 it could cause issues, but if you use let’s say new_something1 it would work as it should.

Best Regards,
- Victor

Hello.

The FilterEverythingPRO plugin is causing the site to load an unending loop of cookies. We have a managed wordpress site w Dreamhost running WP 6.6.1 and Avada theme 7.11.9.

I’ve been in touch with Dreamhost and they added a cookies string to disable your cookies, but responded with:

“I made sure those were set, according to the information provided by the filter-everything plugin’s support, and the cache is still being bypassed. The cookies that are returned are the following:

set-cookie: 1qu08uit=j12yyg6qo1vw; expires=Tue, 20 Aug 2024 19:19:28 GMT; Max-Age=432000; path=/; secure; HttpOnly set-cookie: 8mphwj6r=hzeus2d9iwda; expires=Tue, 20 Aug 2024 19:19:28 GMT; Max-Age=432000; path=/; secure; HttpOnly

Please double check with the plugin’s support to see if they can provide a custom VCL to make these cookies cache-friendly.”

I realized that this problem happened towards the end of July when WP was updated to 6.6.1 on July 20. Don’t know if that’s important, but thought I’d note.

Can you provide a custom VCL? Thanks so much!

But have you tried it with all of the 4 cookies? As previously we provided only 3 as we accidentally missed the 4th one.

wpcContainersStatus
wpcHierarchyListStatus
wpcMoreLessStatus
wpcWidgetStatus

Best Regards,
- Victor

Hi Victor!! Thank you! I’ve sent the 4th cookie to Dreamhost support. I’m hoping it’ll do the trick. THANK YOU for working with me on this!

We are hoping this will help to fix the problem. Let us know the results.

Best Regards,
- Victor

I created an ecommerce website using the SureCart plugin in WordPress… unfortunately, the SureCart plugin does not yet have a price range filter or to sort products by price… can the Filter Everything plugin be used in the SureCart plugin to add these filters?

Hi topmusikofficial01

We have tested this plugin (the free version of it) and it seems like the products are displayed via API or any other custom ways. Also, page builders like Elementor cannot find the post type of those products created by SureCart plugin and display them with the grid loop element.

So if this plugin does not display posts via WP_Query then they cannot be filtered. You can make a request to their support in order to ask if it is possible to somehow display products with the WP_Query on the page in order to filter them.

Best Regards,
- Victor

can this plugin be used on surecart

Hi topmusikofficial01

Thank you for your interest in the Filter Everything plugin.

Can you please provide more detailed information on the plugin you are mentioning, and in which exact way you are planning to use them together? So we could provide some information on it.

Best Regards,
- Victor

Is this compatible with Elementor Loop Grid? https://elementor.com/help/loop-grid/

I have set up a post loop using Elementor but the filters don’t seem to be working. Please take a look: https://gndadev.wpenginepowered.com/diy-exhibits-test/

When I apply a filter, the filter just appears twice on the page instead of filtering the posts.

Hi kevin467

Thank you for choosing Filter Everything PRO.

Yes, it is working with the grid loop, and everything is working correctly and filtering, as you might see here – https://prnt.sc/Wb83fGWhUOTE

So what might be the issue? It is actually simple, first is the container for AJAX, you choose the ”.collection-container” class for the AJAX settings, which is bad, as it is repeating 3 times in different places on your page, including the filter set. We recommend setting with the Elementor unique class/ID on the grid loop element or the container that only has inside this grid loop element. So the AJAX will update only one container on the site.

Secondly, which is responsible for the empty page after filtering, until you refresh the page. You are either using some lazy load or any other things from the settings to make your posts appear with animation, etc and it is not AJAX compatible by default. You can read about it more here – https://filtereverything.pro/resources/ajax-instructions-only/

Best Regards,
- Victor

Hi,

I have an issue where the pop up mobile widget shows the ‘filter’ button at the top of every page, not just the product archive pages where it should only show. Would you have any idea why it might be showing on every page?

Hi russellviode

Thank you for choosing Filter Everything PRO.

Absolutely, please check this page – https://filtereverything.pro/resources/mobile-devices-new-approach/ it contains information on any issues like that and how they can be fixed. If to be more precise there will be a title “The mobile button is visible on all pages” with the fix under it.

Best Regards,
- Victor

Hi,

I am from lankatek.com may I know how to get URL Prefixes to my filters

Hi tngridharan

Thank you for choosing Filter Everything PRO.

Can you please provide more detailed information, on what you mean by “how to get URL Prefixes to my filters” you write any unique values there that don’t cross with the already created slugs on your site?

Best Regards,
- Victor

Hi. I encountered an issue, I can’t update the filters. It’s giving me an error – “Error: this prefix is not allowed because it matches a taxonomy or term name already used on your site. Please use a different prefix.” Although it worked fine before. What could be the problem?

Hard to say actually, maybe you need to increase the PHP memory limit.

Or rewrite the code for a bit following the example from the documentation page – https://filtereverything.pro/resources/all-about-seo/

Best Regards,
- Victor

I tried increasing the limit, but it didn’t help. Anyway, thanks for the response.

If possible, in future plugin updates, it would be ideal and convenient to add the ability to display the title and SEO description using a custom field or shortcode.

I also have another question regarding licenses: where can I check which websites have the plugin activated? It seems I’ve used all the keys, but not all sites are published, and some are still in test mode.

Hi sergey_web

Well, you can change the theme template and use the default entities to display post titles. And placing the SEO Descriptions is already possible via function and this function can be rewritten as a shortcode, so you can use it on the site like that.

But, we are going to send your request to the development team, perhaps they will add something like that in future updates.

You can send us the license keys via PM so we can provide this information for you or deactivate it across all of the sites, so you can activate it only on the needed ones. PM is here – https://codecanyon.net/user/fe_support

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