Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,664 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8953 comments found.

I’m using a filter with ‘Radio’ type but when I select (or hover) on a different option, it tries to use the filter with ‘filter-name-OR-other-things’ in it, rather than the unique url.

Why is it trying to use more than one on a radio type in the url? (I’ve also set it to AND statement in the settings and it still does the same)

Why is the radio using OR in the urls?

Fixed. It was to do with the priority

We are glad to hear that the issue was resolved.

Best Regards,
- Victor

Hi,

I want to create a blog filtering by categories, date, and add a search field like in this design: https://ingenias.es/wp-content/uploads/Captura-de-pantalla-2023-09-26-a-las-11.59.08.png

I’m doubting how to create just the search filter for the top of the blog archive, because I can’t find a way.

Could you please help me with an orientation? The blog page is this one: https://ingenias.es/blog/

Hi helefante,

You can place two shortcodes on the page [fe_widget] and one filter set should have enabled the Search Field option and one filter by unexisting meta key and choose to hide the empty filter sets. In that case, this filter set will show only the search field. The second filter set should contain all of the rest filters that you need. Priority is responsible for which filter set will be shown first on the page.

About date filtering there is no such option yet, but you can create an ACF field with that where you can enter the needed “Date” and apply it to the posts, so you can filter by it.

Best Regards,
- Victor

I have set up the filter “by unexisting meta key and choose to hide the empty filter sets” as you recommend, but know I realized that the filter isn’t working. I added a css class to the block with the blog posts and isn’t showing the posts by categories.

Apparently is working and showing the categories, but when you clic on the category is not showing the content with that category and either with the search filter.

https://ingenias.es/blog/

Hi helefante,

Go to the filter set setting and in the “And what to filter” choose another query hit update and test it.

Best Regards,
- Victor

Hi, there´s a small bug:

I have 2 identical filter sets on one page. One is in a site panel the other in a “off canvas” site panel that only appears when width is smaller than 960px. The problem: The CSS styles for option buttons get only applied to the “off canvas” site panel filter set. In the “normal” site panel the option button stays as if it is not “checked/selected”.

All functions work it´s only a styling problem. I can see, that this CSS is not written in the checkboxes:

.wpc-filters-main-wrap input[type=”radio”]:checked::after, .wpc-filters-main-wrap input[type=”checkbox”]:checked::after { opacity: 1; }

You can try this behavior here: https://balxny1.myraidbox.de/ausruestung/

For the filter: Tragesystem

1.) Just select one option button.

2.) See that the styles don´t appear

3.) Reduce site smaller than 960px wide

4.) Click “filter” button above product cards

5.) See in “off canvas” site panel for the same filter that option button here is checked

For other checkboxes it´s no problem. Seems to be only a problem with option buttons.

This don´t happen if I have only one filter set on the page but I need both for a better mobile experience.

Thanks for your help!

PS. I already sent you some days ago admin login credentials for another problem for the “counter” functionality which u can use.

Ok, thanks. Perhaps it´s only a CSS issue but I don´t know. Would be great if this works, as option button in the cases we use it, is better then the checkbox option.

Thx for your reply!

Hi, just checking progress here…

Hi hwvaubel,

There is no progress on the radio buttons. Here is the link – https://onecompiler.com/html/3zqxjmqu7 to provide an example of how radio buttons work if there are two sets with the same pair of radio buttons (as you have with two filter sets). Just hit the run button – https://prnt.sc/aUQbhBI6mZ-i and check yourself. Perhaps it will give a better understanding of the situation.

Best Regards,
- Victor

Is there anyway to duplicate a filter?

& is there a way to check if a filter id exists? (using php)

Hi centrable,

Out of the box, there is no duplicate filter set ability, but our dev team is very positive about adding this ability with future updates.

There does not appear to be a function that aligns with your inquiry. However, may we ask for the purpose of it? There may be alternative approaches that can assist in achieving your desired outcome.

Best Regards,
- Victor

Hi, in SEO rules the SEO description goes below the products in category, not above. How to change it? H1 title does not show at all.

Hi petrajz,

Thank you for choosing Filter Everything PRO.

By default Filter Everything uses the next hooks to modify H1:

add_filter('the_title', [ $this, 'seoH1' ], 10, 2 );
add_filter( 'woocommerce_page_title', array( $this, 'seoH1'), -5 );
add_filter( 'get_the_archive_title', array( $this, 'seoH1'), -5 );
add_filter( 'avada_page_title_bar_contents', [$this, 'seoH1'], -5 );
add_filter( 'post_type_archive_title', [$this, 'seoH1'], -5 );
add_filter( 'elementor/utils/get_the_archive_title', [$this, 'seoH1'], -5 );

You can attach the SEO Rule’s method to your theme hook:

if( class_exists( 'FilterEverything\Filter\Pro\PluginPro' ) ){
    $seoFrontend = \FilterEverything\Filter\Container::instance()->getSeoFrontendService();

   add_filter( 'your_theme_h1_hook', [$seoFrontend, 'seoH1'], -5 );
}

About the SEO description troubleshooting you can read here – https://filtereverything.pro/resources/seo-rules-troubleshooting/

Best Regards,
- Victor

Hi, when I attach the code, none of the seo rules are working anymore. About the SEO description I don’t know how to do it. I am using flatsome theme.

“When I attach the code, none of the SEO rules are working anymore.” Did you just place all of the presented code in your functions.php file? You can contact the “flatsome theme” support and ask which hook are they using for the H1 in a specific template, or check the template by yourself so you can use it in the code.

By default SEO rule’s description is attached to the woocommerce_after_shop_loop hook on WooCommerce pages and to the get_the_archive_description hook on the WordPress archive pages.

So basically you need to go to the needed page check which template it is using with the “Query Monitor” plugin look at that template and basically use the example of the code to place the description on the needed hook.

Use this code as an example:

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

It will place the SEO description on a hook and remove the category description.

Best Regards,
- Victor

Hi, on tablet the selection boxes look all different? DO you know how we can make them uniform? https://snipboard.io/2ShYty.jpg

Hi , ipad using safari

Any update?

Hi mrijnwal,

As long as you are not using this option from Filters -> Settings -> Experimental -> https://prnt.sc/vndiLJCVl7la the checkbox styles are inherit and using the slyes of your theme. So the issue is in the theme styling of the checkboxes. Try to turn the option “Styled checkboxes and radio buttons” on and test it.

Best Regards,
- Victor

Hi,

Everything works great except 1 thing. If i click on one of the filters it works great, but if i click on Nextpage or a nother page number it does not seem to remember the filter i choose.

example https://lmmertd1.sg-host.com/en/product-category/all-chesterfield-furniture/

Select 1-Seaters on the left, go down the page and click on Next or a page number. Youll see the url change and it load All products again.

What can i do to get this right?

Hi qoqmedia,

Instead of the product container use the container that has inside pagination and products, this one – https://prnt.sc/_1CZHLN20ChK but do not use the higher containers as the container should not have inside the filter widget. Right now the pagination is not updated, but when you use the “col-lg-9 col-md-8” container, it will update the pagination.

Best Regards,
- Victor

Hi, I have a problem with filtering Custom Fields on a page. It just does not work. Here is the link to the page: https://canvaswallmaps.com/hp-different-sizes/. Price works fine. The width filter, which is a custom field on the product however, does not work. The width filter works on the shop page from a widget area. If you have any suggestions how to implement the width filter instead of using Custom Fields but still be able to use it as a range slider, I’m happy to listen. I have another case opened with you so if you need to log in and check what’s going on in the background, you are welcome to do so.

Hi vasjas,

Yes, you can create it by the product attributes and use the “Taxonomy Numeric” to create a range slider filter by it. But those attributes should contain only numbers. Also, please renew the wp-admin dashboard access as it is closed, simply saying not available.

Best Regards,
- Victor

i have a two issues:

Even though I edited H1, which is one of the SEO rules, it doesn’t show? What could be the reason?

https://prnt.sc/nuyeLpk9gG6F

Also

It takes about 20-25 seconds when updating a post. When I close the Filter Everything PRO plugin, it updates in 3 seconds. Why might it be caused?

I’ve been trying to solve this problem for a long time and I found that it was caused by the Filter Everything PRO plugin.

Site address: cepkolik.com and I use litespeed server. Could there be a conflict with the LSCache plugin? Or what should I do?

Hi ahmetekinler,

It appears that the pages have been indexed by a different plugin. If our plugin is responsible for SEO (index or no index), you will be able to observe comments like https://prnt.sc/M6eIv6eccDiI on your pages. However, there seem to be no comments like that on any of your pages.

Best Regards,
- Victor

I removed your plugin, that’s why you don’t see those comments.

I had two big problems with your plugin.

1- The site slows down a lot (it takes 1-2 minutes to update a post) You already know this.

2- Thousands of sub-pages indexed.

Since you cannot find a solution, I uninstalled the plugin and I do not plan to use it.

1) When you update a post, it may take up to 30 seconds for the changes to reflect on the website. We have explained the reason behind this and also provided the necessary code to disable this feature.

2) It is worth noting that pages that have been filtered are typically not indexed, so if you encounter instances where filtered pages are still being indexed, it may indicate a conflict with another plugin.

We have conducted numerous tests on our end as well as with plugin users to ensure its reliability.

Best Regards,
- Victor

Is it possible to display 2 filters on one page by setting the ‘where to filter’ to ‘Product category’ and ‘any category’ (woocommerace) and then the other one to the actual category you’re in for example Fridges

Basically I want to display a filter on every category page but if you go into a subcategory (a specific one) I want to display a second filter (as well as the global one).

When I try, the main global one disappears.

One filter is set to ‘any’ and the other is set to the actual category name.

Yes, indeed, in that case, you simply need to place two filter sets on a specific category.

Best Regards,
- Victor

The one that is set to ‘Any category’ does not show when using two widgets or shortcode

You need to place two filter sets on the specific category, the one with Any Category won’t work, you need to have one for Any Category, and two additional ones to set for the category let’s say “Laptops”.

Best Regards,
- Victor

Hi can u help me plz

We have a problem ! Why we have to scroll in filter pro? and how to create on stock and out of stock? U have video with my problem

07.09.2023_12.34.52_REC (screenrec.com)

Hi i have problem plz give me instruction.. on stock or out of stock dont work,, Look links : where i make mistake? https://prnt.sc/gG9hAik2-Z2e https://prnt.sc/h-HfUeBqARi2. https://prnt.sc/FZqsESKkCYML

Hi zdenko12,

Please, delete that filter and use only _stock_status in the field for meta key. It should not contain “meta key _stock_status” it should contain only “_stock_status”

Best Regards,
- Victor

Done,, its work,, ty Regards

https://deciml.in/blogs-2/ this is my page but is not showing properly in mobile

Hi bhushand4,

Please write your request from the account where you purchased the plugin so that we can provide support for your issue. Thank you for your understanding and cooperation.

Best Regards,
- Victor

I moved the site I am developing where I had my licence activated, now I can no longer retrieve my licence, what can I do?

Hi forlanistudio,

The license was deactivated, and you can activate it on the needed sites.

Best Regards,
- Victor

Good morning Victor, thank you for your quick support.

I ask an additional question: is it possible to add the thousands dot in the values of the range filter?

Hi forlanistudio,

You can only change a slider step so when you move the slider it will add 1 or .01, and so on – https://prnt.sc/WCpahi0PqaWD But, if you want to show 1000000 like this 1,000,000 there is no such possibility yet.

Best Regards,
- Victor

All of my filters suddenly didn’t work. We didn’t do any changes on the settings. you can check our site here: https://www.ableprintandpromo.co.nz/category/bags/filter-tote-bags/.

Thanks in advance for your help.

Hi blairatkinson,

Thank you for choosing Filter Everything PRO.

It is possible that the query on the filtered page has been changed due to changes made to the page itself. To fix this problem, simply navigate to the desired filter set settings and select a different query in the “And what to filter?” dropdown. Once done, hit update and check if everything is working correctly.

Best Regards,
- Victor

Can we display sub categories with multiselect option? All should in exandable , we don’t want + icon aside as well

Hi upendra13,

Thank you for your interest in the Filter Everything plugin.

Here is support for accounts who purchased the plugin, and if you already did it, please write your request from the account where you purchased it.

If you are using the Free version, please write your request on the WordPress support forum – https://wordpress.org/support/plugin/filter-everything/

Best Regards,
- Victor

Hi Victor,

can you tell me how to change the breakpoint for the option “Collapse the widget and show the Filters opening button”? I need to to collapse the filters on tablets in landscape too, so I would like to set the breakpoint to max 1279px. Cheers, Michael

Hi Michael,

Add this code to the functions.php, and edit the breakpoint to your needs:

add_filter( 'wpc_mobile_width', 'my_custom_wpc_mobile_width' );
function my_custom_wpc_mobile_width( $width )
{
$width = 1180; // new desired breakpoint in px.
return $width;
}

Best Regards,
- Victor

Hi,

I placed a filters widget on my search archive. The filters display, but when you click on a checkbox, it changes the url and seems to load, but it does not filter the results.

Example: https://deep2020.wpengine.com/?s=joy

Update: I installed Ivory Search and it seems to have done the trick. For whatever reason the default search did not work with Filter Everything.

Hi triangle-media,

Most likely there was an incorrect query chosen in the “And what to filter?”. But we are glad to hear that the issue was resolved.

Best Regards,
- Victor

Hi It seems that my filters added this month are not working(new one) https://www.alkoholeswiata.com/rodzaj/miody-pszczele/ https://www.alkoholeswiata.com/rodzaj/szklo-do-alkoholu/ The previous ones with the same settings are ok E.g. https://www.alkoholeswiata.com/rodzaj/wina/

please help

Hi growbusinesssolutions,

Please go to the needed filter set settings and choose another query in the “And what to filter?”, then hit update and check its workability.

Best Regards,
- Victor

yes it’s works now, thank you

I have a numerical slider showing the price options on the sorting widget. How do I display the number in currency form, with commas?

Hi timewarp23,

At the time you can change the slider step only – https://prnt.sc/YhJj9TQ3Bl58 so it won’t increase the number only by the “1” while you are moving the slider.

But there is no out-of-the-box ability to show it like this “1,000,000” as a 1 million it will show it in this way 1000000. Maybe with future updates, this feature will be added as well to choose how to display it from filter settings.

Best Regards,
- Victor

I am using global JS like this to display numbers on my site:

const addCommas = () => { const numbers = document.querySelectorAll(’.clean-number’); };

numbers.forEach((num) => {
  const value = num.textContent.replace(/\D/g,'');
  const formattedValue = parseInt(value).toLocaleString();
  num.textContent = formattedValue;
});

addCommas();

is there a way to add a class to a wpc-filter-range-form ID?

Hi timewarp23,

You can try it but the input fields in the range slider are numeric and 1.000.000 same as 1,000,000 would not work. Also, those values from inputs are used for price GET parameters. In order to make it work you can rewrite a code and templates for range slider for text inputs with regex and so on.

You can add any classes that you need with template overriding – https://filtereverything.pro/resources/templates-overriding/

Best Regards,
- Victor

Sorting Widget does not initially sort by the top level option.

I have vehicle length as the top level option in the sorting widget. It shows that option on the pages dropdown, but does not display the results as that. You need to choose another option from the dropdown and then return to length for it to sort by length.

I want the page to load sorted by the option shown in the dropdown.

Hi timewarp23,

Thank you for choosing Filter Everything PRO.

It is not applied right away when you are entering on the page, the first option should be the “Default (no sorting)” option – https://prnt.sc/wbwQyUfIu8Yv Then the rest of the sorting options that you need.

But if you want to choose any sorting option by default on some page then add to the link that will send you to the page the needed sorting option parameter, like this: mydite.com/some_page/?ordr=n_price

Best Regards,
- Victor

Thank you for also including a solution. Seems so obvious now that you say 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