Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,818 sales
Recently Updated

Stepasyuk supports this item

Supported

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

9012 comments found.

Hello again Victor,

I need assistance for the Events Calendar archive page. I managed to add a sidebar and add filters to the archive page with all my events. But the filter doesn’t work. In my filter set setting, there’s like 15 tribe_events request to choose from, but no one seems to work.

The page : https://dev.mudita.ch/events/

Could you help me with this issue?

Thank you,

Alex

Hello,

I sent you the credentials by MP,

Regards

Alex

Done! Please check this image – https://prnt.sc/Jyy362N4ZOdg

All we did was choose the correct query in order to filter them. Please check this page now – https://dev.mudita.ch/events/

Best Regards,
Victor

Awesome!

Thank you Victor!

Best regards,

Alex

I have a website here https://smartreno4u.ca/projects/ and I want to filter the projects like kitchen projects and bathroom projects and others, is it possible? I am using ASTRA THEME

Hi wowmedia247

If they are simple posts from the CPT named “projects” and displayed on the page via WP_Query, then yes, you can filter them.

Best Regards,
Victor

Do you have the possibility to add pagination for testing?

Because the problem seems to occur when a page is specified.

For example: https://test.filtereverything.pro/[category_name]/[filter_name]-[filter_value]/page/2

Thanks.

Yes, the pagination will not work on the category without the category particle in the URL; it will generate a 404 error. With or without our plugin.

Also, please respond in the same comment thread, as it becomes confusing when new threads are created just to add something to the same issue. This fragments the conversation, making it difficult to follow the full context.

Best Regards,
Victor

Thank you for your analysis; it helped me identify the problem.

I ran some tests, and it actually happens when you define the following permalink structure: / category / postname /

Unfortunately, I don’t see how to solve my problem with Filter Everything :/

We just tested it on our end, and even with such permalinks behavior, it is working:

https://test.filtereverything.pro/category/business/ https://test.filtereverything.pro/business/

Best Regards,
Victor

Hello, I found a bug with the plugin, which generates a PHP Fatal Error, “Maximum execution time of 30 seconds exceeded.” This isn’t an execution time issue because even when I set it to unlimited, the error still appears. The error appears when visitors try to access https://mywebsite.com/news/tag-windows10/ instead of https://mywebsite.com/cat/news/tag-windows10/. This is because WordPress allows access to category pages both with and without the category permalink base. Can you fix the issue? I can give you more information if needed. Thank you.

Hi DreamOn5

Thank you for choosing Filter Everything PRO.

Can you please send the exact page with the issue and instructions on how we can recreate this issue on the page?

WordPress allows access to category pages both with and without the category permalink base.

By default, WordPress does not allow access to category pages both with and without the category permalink base. For example, if your category URL is site.com/cat/cars, you cannot also access it as site.com/cars, this won’t work with the default WordPress behavior. Only one permalink can work, but not both at the same time.

Best Regards,
Victor

That is absolutely incorrect behavior on your site. You either have some URL rewriting rules in your .htaccess file or a permalink issue on the site. Maybe an issue in the database as well.

For example, you can test it on our demo site – https://demo.filtereverything.pro/category/health/ and remove the “category” and see what happens, it will simply return a 404 error as it should. And it will do so with any clean WP installation.

You can try going to the Settings > Permlalink and hit the update button, maybe it will update permalinks and remove the ability to use both options.

Best Regards,
Victor

Filter and Bots – a Complete Disaster

:shocked: :shocked:

Continuing the previously raised topic. For each combination of selected parameters within each attribute, a separate page is generated with a URL containing “-or-”. If the filter has 10 parameters, we end up with 1024 variants and pages.

The whole problem is that all these pages contain links to other combinations. Bots and crawlers follow these links from page to page, creating an enormous load on the hosting and server. Yes, pages not explicitly marked for SEO have the noindex, nofollow directives.

But the thing is, all bots – including Google – completely ignore these directives. Sure, they might not index or show your pages, but nothing stops them from crawling them. Here’s an example from Google itself:

https://prnt.sc/Z98YMFwxn-Gg

To make matters worse, many suspicious bots disguise themselves as regular Chrome or Firefox user agents.

Yes, if the site is hosted on a dedicated server, it’s still somehow manageable via blocking. For example, at the server level, you can block all suspicious bots altogether or deny access to URLs containing “-or-” for legit bots. Additionally, block aggressive bot IPs at the site level.

But what can you do on a shared hosting environment?

This is becoming a full-blown catastrophe. Something must be done — hide the links or come up with another solution…

Hi akaEnot

We’ve directed it to the development team. As soon as we get any information on it, we’ll let you know.

Best Regards,
Victor

Hi! Is it possible to stay on the same url when using filters? Because when filtering the URL change and after som filtering it stop working because you are on wrong URL.

You can send it via PM – https://codecanyon.net/user/fe_support

Best Regards,
Victor

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

More likely some permalink conflict on the site.

Best Regards,
Victor

Seems like after adding the fe_ additin to your filter prefixes fixed the issue – https://prnt.sc/s7VFFQr_MNII you can edit them in the Filters > Settings > URL Prefixes.

Make sure to use unique values that are not used on the site for any pages, taxonomies slugs and so on.

Best Regards,
Victor

HI I’m using the plugin on my site, it works great. I am using elementor pro and the Hello theme by elementor. I am wanting to display the sorting shortcode, but I understand that that can only be displayed once a widget has been created within the widget area of the theme. I dont have the ability with my theme to create widgets, so im unable to display the sorting option. How can I fix this?

Hi lewishayes_

Thank you for choosing Filter Everything PRO.

If your theme does not have a widget area, you can use this code example, which you can place in a code snippets plugin – https://wordpress.org/plugins/code-snippets/ in order to add a widget area to your theme:

function custom_theme_widgets_init() {
    register_sidebar( array(
        'name'          => __( 'Custom Sidebar', 'textdomain' ),
        'id'            => 'custom-sidebar',
        'description'   => __( 'Add widgets here.', 'textdomain' ),
        'before_widget' => '<section id="%1$s" class="widget %2$s">',
        'after_widget'  => '</section>',
        'before_title'  => '<h2 class="widget-title">',
        'after_title'   => '</h2>',
    ) );
}
add_action( 'widgets_init', 'custom_theme_widgets_init' );

And in this widget area, create a sorting widget with all of the parameters, and then display it on the page with the shortcode.

Best Regards,
Victor

Subject: Keep “Filter by Type” Always Expanded with All Hierarchical Options Visible

Hi,

we are using your plugin “Filter Everything” on our website https://greenterest.it, specifically on this page: https://greenterest.it/brand/bottos/.

Our client has requested that the “Filtra per Tipologia” (Filter by Type) section always remains fully expanded, including all child (hierarchical) categories, by default.

The goal is to immediately show users all available filter options without requiring them to click to expand the section. This is crucial for UX, especially on mobile devices.

Is there a setting or code snippet we can use to make this behavior permanent?

Thanks in advance for your support.

Best regards

Hi Officina2-0

Basically, there are the 3 most common options here:

1) Use the hook “wpc_hierarchy_opened” in order to write the code that will always make them open(this is just a hook in the plugin, not the code):

function flrt_hierarchy_opened() {
    return apply_filters( 'wpc_hierarchy_opened', [] );
}

2) Use custom CSS styles to make them always open and remove the ”+” symbols. You can place your custom styles in the Filters > Settings > Experimental > Custom CSS.

3) Use templates overriding – https://filtereverything.pro/resources/templates-overriding/ to write your own custom template for chekboxes.

You can choose the most comfortable option for yourself in order to make them always open by default.

Best Regards,
Victor

Hi Victor,

Thanks for your previous reply.

I’ve reviewed the documentation and your suggestions, but I still need help implementing option 1. Could you please show me exactly how and where to add the hook wpc_hierarchy_opened so that all hierarchical filter elements are always open by default?

I’m not sure if the hook should be added in the functions.php of my child theme or elsewhere, and I’d appreciate a concrete example with the correct syntax.

Thanks in advance for your help!

Best regards

We’d love to help, but unfortunately, in accordance with the Envato/CodeCanyon support guidelines, custom codes are out of the scope of support policy – https://prnt.sc/VE72fuxbqrWh

The support is limited to the features included in the default functionality of the plugin. Such a feature can be added in future updates.

However, we can guide you by pointing out which hooks might help you achieve certain results. If you’re not familiar with WordPress hooks in general, we recommend contacting a site developer who can assist you in implementing the required custom functionality and writing this custom code for you.

Best Regards,
Victor

Hi there,

I built a filter but it doesn’t work. The same results just pop up onto the screen as if there filter was used.

Page build = only show products worth £6.99

Filter build = Post type product - filter by categories - filter title = gift type - prefix for url = productype - view in widget = checkboxes - filter logic = or - sort terms by abc - include = i had added the relevant categories (it breaks either way) - folding = ticked. Settings -Where to filter = Pages + designated page. -and what to filter = search product query #1 Note – i never really understood what this was doing and it has changed recently with an update. -Empty terms = always hide -show counters = ticked -hide empty filters = ticked

and that’s it. I am stumped as to why it doesn’t work. Maybe it’s the page build to only show 6.99 products?

Interesting. I think all of mine are in the 1st search query. Can you give me an example of what might have to happen for them to be elsewhere?

What would cause the need for other queries to take up other spots? A plugin? script? otter blocks maybe?

Ideally, a page should have 1-2 queries under optimal conditions, not 8-12 or more. So, if there is a page with basically 4 posts and a header menu only, and we see that there are 8 or more queries for a chosen post type, then something is wrong.

Either the header menu is using multiple queries to display menu items, so adding a new menu column can add 3 more queries to the page, or even more, making 20+ queries, which can significantly slow down the site and always mess up the number of queries on the page and their order. Or the issue with the page template that displays those posts.

The plugin loads the page and processes each query in the order they fire on that exact page. If something changes on the page in terms of queries, it will affect the order in the ‘And what to filter’ section.

Best Regards,
Victor

Ah, very insightful. Thanks again for the support.

I want to use the plugin via shortcode and apply filtering only where the shortcode is used. However, I haven’t been able to get it to work properly. I’ve reviewed your documentation but couldn’t find the ID information anywhere. I don’t understand why so much effort was made to hide the ID—honestly, it would have been much better if it were more visible.

Could you please let me know where I can find the ID of the filter set I created?

Hi radikel

Thank you for choosing Filter Everything PRO.

The shortcode itself does not display the filters on the page. It is more like a canvas where the filters will be displayed if you apply the filter set on this page in the “Where to filter” dropdown. Also, you have to choose the correct query in the “And what to filter” in order to filter your posts on the chosen page.

The ID can be found in the URL when editing the filter set.

Best Regards,
Victor

bkris

bkris Purchased

Hi please help me. I set up a filter for filtering woocommerce product in elementor pro loop grids, witch custom loop template. But when i select two Brand attributes and the connection is OR relationship, not AND, it only shows the last selected brands and list only those. But up in the url it shows the correct parameters with or connection. Why is that? How can i correct this bug? Thank you

Hi bkris

This issue may be caused by an incorrect configuration or a conflict with a custom code or template. It could also be due to an incorrect query used in the “And what to filter” setting.

This type of issue can be checked using admin credentials; however, it requires active support time. If you’d like us to check the issue on your site, please extend your support time. Once it is extended, we will send you instructions on how to securely provide us with the necessary credentials so we can check the site.

Best Regards,
Victor

Hello. I have manually added the function to my theme’s hook for outputting the SEO Rule description. This works great. But I do not see in your docs how to output the H1. This is not displaying automatically in my theme, so I need to add it to my hook as well. How can I do this? Thanks.

https://filtereverything.pro/resources/seo-rules-troubleshooting/

Hi bravewhale

Please check this page – https://filtereverything.pro/resources/all-about-seo/#seo_h1_description_issue

Best Regards,
Victor

nwb18

nwb18 Purchased

Before I click on extra support, I have a question: I would like to use the filter to filter people. For this, I need 3 to 5 filter options. I don’t use WooCommerce, can you use the filter this way?

I saw a nice discount for support before I logged in, but when I’m logged in, the normal price is shown. Can I get the discount here too?

nwb18

nwb18 Purchased

I have a custom CPT, can I filter on more than 3 or 4 items using this?

Yes, you can.

Best Regards,
Victor

nwb18

nwb18 Purchased

Cool, I will renew support :-)

Hi, I have the pro version of your plugin and added my licence to my main website (rawdogfoodcompany.co.uk) but I have just tried to add it to my staging site and its saying it is already used on two sites. How can I remove the second site as it should not be used anywhere else.

Thanks Guys J

Hi jusneale

You can send the license key (the one you are entering in the license tab) via PM – https://codecanyon.net/user/fe_support so we can deactivate it from the second site.

Best Regards,
Victor

Hello,

I’d like to filter my events by the venue. My events are created with The Events Calendar plugin. So I’ve created a new filter with the custom meta key of _EventVenueID but it returns the ID of the venue, not the label. The filtering is working as expected.

How can I display the label ?

Thanks for your help,

Alex

Hi Alex

Can you please provide information on what custom field type you are using? If it is a relationship custom field, please check this page – https://wordpress.org/support/topic/filter-cpt-with-acf-relationship-field/

Best Regards,
Victor

Hi Victor,

Thanks for your quick answer.

It’s the venu field that comes with the events calendar plugin. This field is already integrated into the core plugin. When you create an event, you can specify a venu, in order to do so, you have to create the venue first. It’s a relationship, link to the event post type, but not created by acf.

I already visit the thread about filter and relationship field with ACF, it helps me. But not for this case, because it’s not ACF related.

Regards,

Alex

In that case, you can contact the Events Calendar plugin support and provide our code example for the ACF relationship custom fields. This may help them implement the necessary changes to make it compatible with their own relationship custom fields. As they know better how it is working on their side and how to pull its data correctly to check.

By default, relationship custom fields do not store the labels, and the plugin pulls data directly from the database. So, if the custom fields contain only IDs, you’ll need additional functionality to retrieve the post titles, or any other relevant data, to replace the IDs with the appropriate labels.

Best Regards,
Victor

I spoke with WP Engine support and they said that the site is not being cached at all right now since it is a transferrable site that will be moved to a new hosting account once it is ready to go live. So there is no object caching present at the moment according to them.

Hi deplume

We’re not entirely sure what they are doing, but the caching on the site is still present and behaves the same way. Clearing the cache with a page refresh works temporarily, but the page gets cached immediately after the refresh. (When you visit the page for the first time after clearing cache, it loads as it should; however, after the first load, you get the cached page version with the cached queries on it.)

It might be helpful to follow their documentation here: https://wpengine.com/support/wp-engines-object-caching/ as it seems like they either aren’t applying any changes at all, or they might be applying them to an entirely different site.

Best Regards,
Victor

I spoke with WP Engine support again and they said “Just modified the added cache exclusion there. Also will add a web rules to set up the cache expiration to 150 seconds.”

They also asked this “By the way can you send a screenshot of the query monitor telling that wpengine has cache please? I”ll just use it as a reference just in case.”

If this doesn’t work, I will try moving the site to a live server since according to them, we can turn off object caching altogether on that kind of environment. I just don’t currently have that space so I will have to make room on one.

Not sure about the query monitor plugin, it cannot provide information if the query was cached or not, but this data is kinda showing it all – https://prnt.sc/IoE1n-8mGTFs

Best Regards,
Victor

Credentials have been sent!

Hi deplume

We have checked the site and found that the issue is related to caching. WP Engine typically uses extensive caching, but in this case, you need to configure the Object Cache specifically. Make sure it does not cache queries on the pages where you want to apply filters, as cached queries cannot be filtered.

Best Regards,
Victor

Hi There I am using the Pro Version of Filter Everything (Client Purchased)

I have got a bug where, irrespective of which filtering option is selected the filter widget doesn’t filter the product collection Block in Gutenberg. The same applies to the Sorting Widget The row of filter chips still appears correctly. Initial tests and early in the development phase the widget was working perfectly, but after styling the widgets no longer work

Thank you for the credentials. The only missing thing is the link to the login page itself, where we can use those credentials. Can you please send it via PM – https://codecanyon.net/user/fe_support

Best Regards,
Victor

Apologies for that. I have just sent it

We have placed the filter set directly on the Shop page and chose the correct query in the “And what to filter” section – https://prnt.sc/LPPhX1q5VQ9e – and everything is working now.

Also, in case you encounter any other issues, please make sure the plugin area and the filters area are not hidden, so we can easily access them. Currently, they are hidden from us – https://prnt.sc/Bgx_AmcILzZw

Best Regards,
Victor

Congratulations on your well-deserved success!

Hi shraddha257

Thank you so much! We really appreciate it.

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