Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,677 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8961 comments found.

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.

This is a really great plugin, thank you.

I’m trying to use a single filter set across multiple pages, is this possible? I can only see the option to select one page.

Hello garethh3

Thank you for using Filter Everything PRO.

In general it is possible but with some restrictions – you can only select list of typical pages. For example all archive pages for a post type. Or all category pages, all tag pages, all taxonomy pages etc.

But you can not select a list of different Pages, because it requires that they all should contain exactly the same WP_Query which usually is not.

Thanks for your reply, it’s working well. I have a couple more questions if that’s ok? I will create a new ticket.

Is it possible to have an option selected by default in a dropdown?

I know I can get a specific URL to kind of cover that scenario, but if I have a filter on a homepage, people may land on the base unfiltered page, if that makes sense. So if visitors land on the base page, I’d like for the query to be pre-filtered as it were. Maybe some parameter I can add to the shortcode?

I’ve tried to force the base page to redirect to my desired filter parameter through a small javascript but that results in some undesired looping effects.

Hello trevolution

Unfortunately no, it is impossible yet. It can be done only via URL included the desired filter part.

As option you can change your home URL in .htaccess file and your homepage will always be opened/redirected to this URL. But it requires to be familiar a bit with htaccess configuration or to find examples in Google.

A few weeks ago I started to translate the plugin to Italian, but translations are still on “waiting” and are not getting approved, so I stopped. I also contacted you on Slack but maybe you didn’t see my message. Would you like your plugin to be translated?

Hello atti84it

Thank you for your efforts in translation to Italian. It would be great if you will do this for 100%. Your translations can approve only somebody who is Italian translate editor on wordpress.org. I already made request to become such editor for Italian, but also you can ask somebody from this list – https://translate.wordpress.org/locale/it/default/wp-plugins/filter-everything/ ( here – https://prnt.sc/tu_GIBh6yOcN )

In any case I will approve them myself if nobody do this. You can continue to translate strings and they will be approved for 100%.

I want an vehicle search filter by attribute (make, model, year) on my home page to find products that meet those requirements. Will your plugin do this?

Need to be able to filter by attributes

Hi songsmash

Thank you for your interest in Filter Everything PRO.

Yes, sure. It supports filtering by attributes and you can place filters on your homepage.

I’m attempting to filter a custom post type with Filter Everything. I have added some custom fields using the field name (sv-make). I am attempting to show this with a checkbox.

For example, I attempting to filter vehicles by their make. Using a custom field radio button with options.

The filter set is displaying on the desired page, however the error message I’m getting is ‘There are no terms yet’, despite there being options present.

I am developing locally but can provide you with a live link if necessary and email you some log ins.

Hi pricejonathan

Thank you for purchasing the plugin.

Usually if you see the message “There are no terms yet” it means that you set wrong meta key for the Custom Field filter. Or as the second reason it can be fact that your did not set values to your posts yet. Filter Everything PRO takes filter terms from posts that have these values, but not directly from ACF field. Please, check both these possible reasons.

Hi there. Thank you for the reply.

I have used the field name with and without _ (underscore) prefix.

There are definitely terms present within the posts that I am attempting to query.

Does the filter set work with sub_fields? A lot of the fields are grouped in ACF, making them sub_fields.

I will be moving to a staging site shortly, will you be able to assist further?

Hi pricejonathan

In general Group field contains subfields and you can filter by them. But you have to know how ACF gives name for subgroup fields. For example if group meta key has name “origin”, subfield meta key has name “country” the filter’s meta key by this subfield should be “origin_country”. So please, check what exactly meta key you use.

The best way to check this is to install PhpMyAdmin plugin and check it directly in DataBase.

I’m having trouble with products that are not on sale, showing up in an on sale filter (on sale products are filtered correctly). There dosen’t seem to be any reason to what products show up, but I can conclude that none of them have any data in the “Sales price” field. I’ve exported some of the products to a .csv and there is nothing in the field.

Inputting something to the field, saving, then deleting the input, and saving again solves the problem – this is however not a very good solution.

Maybe a possible solution, could be a manual re-index button in the plugin in options, or a CRON feature doing the same.

Hello 7milaps

Thank you for using the plugin.

In general I can say that it is not a plugin bug but it seems it is consequence of the data stored in your post meta fields.

I would be glad to help you more with this, but unfortunately your support period has already expired. If you still need help with the plugin, please extend your support period and I will be happy to help you or to answer your questions.

Kind regards.

Hello, I bought your filter everything plugin with the license: c95af63a-5ecf-4246-bd11-3f542dab9c06 – 7 Oct 2022

Since Friday, I contacted you to report the filter malfunction: https://ibb.co/N9fBtV1 https://ibb.co/dtXqYhN

I have sent you the FTP and Wordpress back office access previously.

Can I have a feedback from you please to know if you are working on it or not ?

Indeed, I just need to know if you take care of my request or not.

Thanks in advance Sincerely Bruno

Hi Bruno

Thank you for using the plugin and sorry for the late response. I’m from Ukraine and here we have some troubles related with russians war.

I checked your site and realized that you have Permalinks Manager plugin which is not fully compatible with Filter Everything PRO. So you can disable Permalinks Manager and use Filter Everything PRO. Or you can use them both simultaneously, but FE will work without permalinks. Here is example – https://staging-sportinplace.kinsta.cloud/listing/category/velo-appartement/?velo-appartement=gris-fonce

I disabled permalinks by adding next code in the functions.php of the active theme: define( 'FLRT_PERMALINKS_ENABLED', false );

If you still need permalinks in fitlers, you can delete this code.

So I managed to do the right query. Now it can detect the pages. However, it does not affect the page grid based on the filter.

Look filter with nothing: https://prnt.sc/TjuYf4U3Dimm With filter: https://prnt.sc/Azl_RkvcnmpA

Still the same.

Hello natuplagnalajoy

I’m glad that your problem was solved.

You have two options – you can enable AJAX and every time your visitor selects a fitler only filtered posts will be reloaded instead of whole page. I recommend you to read this short article about AJAX – https://filtereverything.pro/resources/plugin-settings/#ajax

Also you can use filter in “Appy Button” mode and every click on a filter will not reload page, until you click on the “Apply” button. So page will be reloaded only one time after selectin all filters.

Thanks!

I’m glad that your problem was solved.

I would be thankful for positive review about the plugin here on CodeCanyon – https://codecanyon.net/item/filter-everything-wordpress-woocommerce-filter/reviews/31634508

Thank you in advance!

Hello, we have a lot of pages that are connected to our categories. This is on WordPress. Unfortunately, this plugin cannot detect the pages?

Let me know if you can help me with this. We bought the pro version.

https://prnt.sc/viXsInGTVm4I https://prnt.sc/w2ryVXI29XHN https://prnt.sc/3JxFrSBx6_4M

Hello natuplagnalajoy

Thank you for purchasing the plugin.

In general you can specify Filter Set to any of your category page or for all category pages. You have to select it in the “Where to filter?” field.

Hi Stepasyuk, do you have a timeline for release of the XML sitemap functionality within the plugin?

Hi danmaby

I’m trying to implement this as fast as soon, but war in Ukraine affects on this process also. I hope up to the New Year, I will finish this feature.

Hello!

SEO specialists of our company ask if it is possible in any way not to display URL prefixes created in the filtering process.

Is it possible in any way not to show the URL change during the filtering process? or explain to specialists that this does not affect SEO in any way?

Thank you.

Hello antonz13

Thank you for using Filter Everything PRO.

1) In general it is not possible to remove URL prefixes. Technically it can be done, but it will require a lot of server resources and plugin will be very hard for websites.

2) URL changings is necessary to inform WordPress what filters were selected and I can not change it. But if you did not create SEO Rules for filtering result pages, all them have <meta name='robots' content='noindex, nofollow' /> and can not be indexed by Google or other Search Engines. So it means such URLs does not affect on SEO of your site.

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