Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,657 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8952 comments found.

Hello Stepasyuk,

we are trying to use Filter Everything Pro in combination with WPBakery Page Builder and we have a problem. When using the Post Grid element, it is possible to use the filter, but there is an odd behaviour. When configuring the filter set in the field “And what to filter?” we see many different post queries. One for every post the grid finds plus one for all (the right one). Only one of those queries has the desired effect to filter the grid, but all the other entries I have no idea what they do. But that’s just an observation, since we can use that when selecting the right post query.

Our problem is that this doesn’t work with the Post Masonry Grid element. When using this element, the field “And what to filter?” does not seem to find any underlying queries. That is strange since it is almost the same component as the normal Post Grid, except for the display of the items.

What can we do to make this work?

If you need some more information please let us know.

Thank you very much!

Hello webdesignkoeln

Thank you for using the plugin.

In general the fileld “And what to filter?” shows you all WP_Queries that are on the page selected in “Where to filter?” field. These WP_Queries related with all post grids, post widgets, post navigation elements on the page. And it’s normal behavior that only one WP_Query from the list allows you to filter specific Posts grid. This query is the query responsible for specific Posts grid.

Sometimes there is situation, when WP_Query related with your Posts grid (for exapmle your Masonry grid) fires only one time, when you load your page at first time. After that all posts from this WP_Query being cached and this WP_Query does not fire and that’s why you do not see it in the “And what to filter?” dropdown.

But you can use a trick – edit you Masonry module, change any parameter in it. For example post count or sorting parameter. After saving its settings open your Filter Set and try to find this new WP_Query in the dropdown. Usually it appears one time after you change grid settigns.

Hello Stepasyuk,

unfortunately, this trick doesn’t work, and I tried it multiple times.

I have changed almost every parameter of the masonry grid and saved it, but the “And what to filter?”-Field doesn’t find anything on that page. Even adding a fresh new masonry grid doesn’t work.

On the other hand, with the normal post grid it works every time.

Do you have any other explanation or trick?

Thank you very much!

webdesignkoeln

It looks like the WP_Query of the Masonry grid requires deeper investigaiton to understand why it is invisible for Filter Everything. Obviously it is not standard WP_Query or maybe even is not WP_Query at all (maybe it is direct request to DB or is loaded via REST API) I would be glad to help you more with this, but it is something that is out of the item support scope here on CodeCanyon. And you have to check this by yourself or ask a developer to help you.

I can only say that if it is classic WP_Query it will work and can be filtered.

Hello! Im using filter everything pro in my website (www.storsenteret.no) and I have a problem… When I have selected a category (hierarchy) (pop up sidebar, using the themes default pop up function) the choosen category will stay open, even when i push the “reset button”. When not pushing the “reset” / cancel button it is actually good that the category hierarcy stays open, but when pushing the reset button the hierarchy categories should go back to the start (only showing the top parent categories). I have tried ajax also, but for now i’m not using ajax. I have also disabled any cache :-)

Hello tfmotosapiens

In general Cancel/Reset button should not change hierarchy status. This status by default is closed (or you can make it opened by default) and if you open some parent category it will be opened until you close it manually.

The Cancel/Reset button resets only selected filters and brings whole Filters widget to default state.

Of course you can achieve situation, when the Reset button will reset hierarchy status, but it requires some JavaScript coding and if you are able to do this or to hire a developer, I can give you advice how to achieve this. (clear cookie with name ‘wpcHierarchyListStatus’ by click on the Reset button)

Thanks for a great answer! I’ll see what i’m going to do. Have a nice weekend! :-)

I’m currently trying to get a Woocommerce product filter to work correctly and once a filter is selected (currently only have a product categories filter), it returns a blank page (eg: missing products). Not sure what I might be doing wrong in this case?

Hello stellardigital

Thank you for your credentials.

I checked your site and I can’t understand you goal. You set filter to be placed on your Test page and after selection a category to be redirected on your category page called “Uncategorized”.

It means that you want to filter products that belongs to the category “Uncategorized”, but this category contains 0 products. So there is nothing to filter and moreover – you ask the Filter Everything plugin to show you products that belongs to the category “Uncategorized” and your selected category simultaneously. But there are no such products on your site and it’s expected behavior that you see blank page without products.

I think it is better to select “Common WordPress pages” -> “Shop page” in the “Where to filter?” field and after that you will be redirected to the Shop page after you click on the Appy button in Filters widget.

Hi Stepasyuk, Thanks for having a look.

At the moment the goal is on the test page to filter all products in the store so that when you select a category filter it will display all of the products in that category.

I have updated the settings to Common WordPress pages” -> “Shop page and now get a 404 page? I also tried resetting the Wordpress Permalinks but that didn’t seem to help either.

stellardigital

I recommend you at first to configure filter to work without redirect (without Alternative location) on your Shop page. For the moment I configured it on your Test page and it works fine – you select any category, click on the “Apply button” and you will be redirected to your Shop page with filtered products.

But I think it may be too complicate for new users to understand how it works with Alternative location.

Hello ! I have just bought the plugin, and I have my first problem. I enter the license number that envato gives me, but it keesps sending an error, that the license is wrong

Thanks in advance

Hello patriciaxotic

Thank you for purchasing the plugin.

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.

Hi jimmyxxp

Thank you for your interest in Filter Everything PRO.

Yes, sure. It is compatible. In general it is compatible with any WordPress theme, but on some themes (in 1% cases) it may require small CSS adjusmtents if theme affects on filter styles.

Hi ! Is it possible to add 2 SEO texts? One text at the top of the product list + One text at the bottom of the product list?

Hi jufloaffi

Thank you for using the plugin.

In general yes it is possible, but this requires to make some coding. You can use function ‘flrt_get_seo_data’ that returns SEO data if it presents on the page.

/**
 * @param string $key possible values are title|description|h1|text
 * @return string|false Needed seo data
 */
flrt_get_seo_data( $key = 'title' );

In your case you have to use it with parameter ‘text’ flrt_get_seo_data( 'text' ); and this will allow you to receive SEO text if current page has SEO Rule. After you have to split it in two parts and use where you need.

Of course this expects that you are familiar with PHP or you have ask a developer to help you. CodeCanyon item support does not provide such code modifications.

So, I purchased the PRO version…how do I connect to my WordPress account?

I’m trying to “Upload Plugin” on WordPress, but it times out on me. Is there another way to do this?

disregard…firewall issue

I’ll let you know if anything else comes up

Hello kevinhenderson2012

Thank you for purchasing the plugin.

I’m glad that your problem was solved. Let me know, if you will have any questions :-)

Is there a chance i can set up range slider by acf fields? I set up custom field with number, but slider shows 0-0

Got it to work but it seems that i can`t integrate it with oxygen builder

Got it! Works great…! :D

Hello raccoonden

Thank you for purchasing the plugin. I’m glad that you were able to find solution of the problem yourself.

Let me know if you will have any questions :-)

On my home page I try to have filter to redirect to shop page for results. All I get on the home page is: Filter Set -> “Where to filter? With different page display selected best I get is a blank area where the filter should be. How do I get my filter to display?

I got it to work…sort of. I have the filter on my home page and selection process and re direct works as it should. But the filter doesn’t work…it brings up ALL products.

Hello songsmash

Thank you for purchasing the plugin.

Please, send me credentials to your /wp-admin in accordance with this document I will check it myself.

Thank you.

Hi. I have a few SEO related questions. Maybe I’m missing some settings, and if not, I think these are important features to add to your backlog. 1) SEO rules pages don’t get added to a sitemap. Is there a way to add such pages to sitemap? (I’m using Yoast currently) 2) SEO rules pages don’t have any Schema markup. It would be nice is SEO rules pages would follow the Schema logic of the main category and substitute data by it’s own if different.

Hi Oleg

Thank you for your suggestions.

In fact XML sitemap with SEO Rule page URLs are already in my schedule, but I didn’t finish it.

About Schema markup I’m not sure I understood you clear. Usually this markup specifies page as Product, Recipe or something like that. Filtering result pages can be lists with different objects (post types) and their markup can be specified by archive or singular page templates. In other words this depends more from a theme files than from my plugin.

I see. Do you plan to add a sitemap for SEO rules in the next few updates? (Just so I know it’s not years to wait)

The standard category page usually has a Schema for “Collection” type (Yoast settings), which is a subtype for “WebPage”. “WebPage” is quite a standard type that can go with everything and would be good enough as a standard for all pages with SEO rules. But yeah, if it doesn’t depend on your plugin, I’ll search for the solution further)

Thank you for the answers.

Hi Oleg

Ok, thank you for your explanation about Schema markup.

The XML sitemap will be added, but I think after New Year. It looks like I will not have enough time to finish this feature faster.

Hi there,

Is the plugin allowed to filter the products from another page? Means, the filter is located on the home page and after clicked on the filter button, it will redirected to the products page and show filtered results.

Is it possible with this plugin?

Hi arjunyourdevexpert

Thank you for your interest in Filter Everything PRO.

Yes, sure. It is possible with this plugin. But I recommend you to configure it to work on the page with products and only after to place it on Homepage.

Okay, Got it. Thanks.

Hi! Is there a possibility to only filter products with a certain tag?

br Chris

In this case filter should not add any other products except products with this tag. Filtering is process of narrowing existing products by selected criteria, but not adding new products on a page.

But maybe something is wrong with filter config. And how you achieved this so your products are shown only by some tag?

Optionally you can send me credentials to your /wp-admin in accordance with this document I will check it myself.

Thank you.

just sent you the credentials

cpaugger

Thank you for your credentials.

I checked your site and realized that it may be problem with caching of shortcode results by WooCommerce. I tried to show the same products but via Elementor products module. Please, check if now it works fine.

FYI – I cretaed DB backup so we always can return back to the shortcode you used before.

But as for me there is something strange – your tag has ID 715, but your Product query via shortcode or via Elementor contains ID 601 It looks like you have sevaral taxonomies with the same slug “garten-und-haus” or maybe some code replaces desired tag ID with another tag ID.

Hello,

When using the “folding” setting to collapse the filters: Is it possible to have the filter collapse again after the user makes a selection? At the moment it always stays expanded even after the user clicks their choice, but I would like it to close again.

Thank you.

Hello drly

Filters with enabled “Folding” option “remembers” their status. So if you need to get it closed after selection any term you have to close it manually.

For the moment there is no possibility to make it closed without changing plugin code directly. But I will add hook ‘wpc_filter_classes’ in the next plugin version and you will be able to handle filter status closed/opened via small code snippet. I will let you know, when this will be ready. Just leave your comment under this mine and this will be before my eyes until I release new udpate.

Hello! I repeatedly try to enter the license code in the form that was sent to me (it has a ”-” sign, letters and numbers), but the plugin claims that “Invalid license key. Please enter correct license key”. Are there any ways to fix this error? The license key was not activated on any other site, was paid for and was inside the sent archive.

My license is 00c1c55a-1213-42e3-b961-0cbecfe3a62e

Hello antonz13

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.

great filter, but can I use this for any type of post? like I dont use woocommerce eproducts. but have porfolio,, will this works? do you have documentation to read?

Hello haik74

Thank you for your interest in Filter Everything PRO.

Yes, sure. It works (filters) with any Post types – posts, pages, products, real estate objects, recipes etc. The best way to start to work with plugin is to see video on this page – https://filtereverything.pro/resources/quickstart/

Hello, Stepasyuk I have a problem with “where” displaying pagination buttons As you can see here on the page https://tramontana.com.ua/kondicioner/seryja-cooper-hunter-prima-plus/ there is the following output sequence: 1 – first 12 products 2 – SEO description that is generated by your plugin (it is quite long) 3 – pagination buttons 4 – description of parent category from woocommerce

Thus, it is not obvious to the user that there are pagination buttons somewhere below the SEO description, and if he does not know that there are more products, he will not get to them.

Is it possible to change this so that the pagination buttons are above the SEO description, which would be more correct?

Hello Igor_Shyshka

In general the problem is that your pagination attached to the hook after SEO description attached. So you can try to swap them. Below is code example that re-attach SEO Description to another hook. You can play with this code and re-attach SEO Description to another hook or to the same hook with bigger (later) than 5 priority.

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

FYI – code example are not provided in CodeCanyon item support terms so I do not support/debug any such custom codes. And it expects that you are enough familiar with PHP to edit the code or you have ask a developer to help you.

I have a duel lingual site English and Spanish. My English seems to be picking up on the correct ACF but the Spanish has different figures without names. Can you help please?

https://snipboard.io/AMm402.jpg https://snipboard.io/jG89Ju.jpg

Hello sherbertspain

Filter Everything only pick up data that are stored in post meta fields of your posts. So if there are values with empty (or maybe with space character) it means you have such data stored in post meta. Please, check them and remove these extra values from meta fields and this will disappear from filter terms.

Hi Stepasyuk,

I just bought the PRO version of filter everything. I want to use the widget on a popup built with elementor pro to filter all kinds of archives, mainly product archives. It did work perfectly, in the beginning, to filter my shop site and other archives out from the popup. Unfortunately, I do not know what I did when it stopped working. As I continued building the website, it stopped appearing at all. So the widget is not appearing either in the popup or when built into the actual archive template. What would be things I need to check to get it back running?

EDIT: It does show up on mobile devices tho. I checked the responsive settings, and they are correct it should also show up on desktop, but it doesn’t.

Hello fabiank20

Thank you for using Filter Everything PRO.

In general it is something out from the item support scope here on CodeCanyon. But I recommend you to check if desired Filter Set specified to your page, if there is Filters widget on this page (I mean widget or shortcode inserted in widget areea) To check maybe it exists on the page, but is hidden for example.

HI,

Im having trouble getting the filter work.. Im using the shortcode which display the filters fine but doesn’t actually filter the results. I have a custom post type called “markets” and a page template that returns all the custom posts. I have the shortcode paced in the sidebar as you can see in the screenshot. Also, when I select an option eg Dublin it opens a new page with /county-dublin which 404s but when I go back to the page and select a different county it does nothing This is the page: https://paste.pics/J62V9 There is my code: https://paste.pics/J62TK

Hi obrien80

Thank you for purchasing the plugin.

It is known problem when filter does not affect on filtered posts. 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.

What about 404 pages – I recommend you to change prefix for URL for this filter to another. You can do it in Filters -> Settings -> Prefixes for URL.

Nice plugin, can you help me define the CSS id or class of the Posts Container on this page for AJAX use? http://lavfilm.dk.linux156.unoeuro-server.com

And can I change the styling of the filter chips/elements to look similar to the “sorting” button? (round blue bigger shape)

and last thing – the filters are not showing on this sub page? http://lavfilm.dk.linux156.unoeuro-server.com/index.php/oversigt/

Hello slowstudiodk

Thank you for your warm words about the plugin.

In general it is something out of the item support scope here on CodeCanyon. But you can specify .articles or even .left-content .articles for the “CSS id or class of the Posts Container” option.

To make labels more rounded you can set bigger border-radius for next elements: .widget-area input.wpc-label-input+label:hover, .wpc-filters-widget-main-wrapper input.wpc-label-input+label:hover, .widget-area .wpc-filters-labels li.wpc-term-item label, .wpc-filters-widget-main-wrapper .wpc-filters-labels li.wpc-term-item label { border-radius: 25px; } .widget-area .wpc-filters-labels li.wpc-term-item label span.wpc-filter-label-wrapper, .wpc-filters-widget-main-wrapper .wpc-filters-labels li.wpc-term-item label span.wpc-filter-label-wrapper{ border-radius: 23px; }

Please add this code in Filters -> Settings -> Experimental -> Custom CSS.

And yes, if you specify Filter Set for parent page, for its children sub-pages you have to specify another Filter Set. Unfortunately there is no inheritance for pages as it works for parent, children Categories.

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