Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,670 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8957 comments found.

HI, Hope you’re well. I’ve upgraded to FE Pro. The filter works fine on the main shop page. https://les-parfums.co.uk/shop/

On other archive type pages (by category or attribute) i.e https://les-parfums.co.uk/product-category/fragrance/for-him/, The “full” filter shows. I’d like it to only show filters and values relative the the page. So in this example it would only show “men” as gender – not “women” or “unisex”. And then only brands that are in the “men” category, sizes that are only in the “men” category, types that are only in the mens category and so on.

I look forward to your help and support. Thank you.

Best regards Ifti

Lol worked it out I think! Created separate filters for each specific category/attribute page and assigned. That works! I notice that I will be creating a similar filter set for each category – is there a “duplicate” filter option – that would make things much speedier! Thanks again!

Hi Ifti

Thank you for choosing Filter Everything PRO.

No, unfortunately, the filter set duplication is only in plans currently, such functionality is not in the plugin yet.

Best Regards,
- Victor

mkv5

mkv5 Purchased

Filtering not working with numeric Taxonomy – I have created a custom taxonomy (using ACF) to store Year data on my custom post type data. When I access the archive page for the custom taxonomy and then apply any other filter (e.g. tag) and click Apply I get a 404. It looks like the filter seems to strip out the numeric information from the archive URL. The issue can be seen here: https://staging.christinanoblearchive.com/taken_year/1971/ (archive page for the Year Taxonomy for the term 1971). If you select a filter and click apply you are directed to https://staging.christinanoblearchive.com/taken_year/ which 404’s.

Hi mkv5

Add at least one letter to the taxonomy year page slug so instead of /1971/ it’ll look like /1971y/ and then test it. Do not forget to update the filter set after this change as well.

Best Regards,
- Victor

mkv5

mkv5 Purchased

Amending the slug to include a non-numeric character does fix the particular issue. I have changed the slug on the Year 1971 to 1971y See https://staging.christinanoblearchive.com/taken_year/1971y/ and filtering now works. I have also confirmed that having a tag with a purely numeric slug breaks in the same way that my custom taxonomy did. I have changed the slug for the tag Agriculture to 777777 and filtering on the tag archive strips out the tag slug and results in a 404 see https://staging.christinanoblearchive.com/tag/77777/ I can amend the all of the existing Year Taxonomy terms to have a non-numeric slug, but I am concerned that if one of my editors adds a new Year term when entering new data then this will have a purely numeric slug and so won’t filter properly.

The tags can have numerical slugs only, if you will use tags only for filtering. But if you are planning to place filters on those tag pages, then they should contain at least one letter in the slug.

If you are using tags only for filtering and have such a 404 error, then the prefix should be changed to the unique one in the Filters -> Settings -> URL prefixes, for example from tag to the fe_tag

Best Regards,
- Victor

I have the same issue as Rrota. Though, it was my first try. WPML not filter says it is not set in translation. I set the setting right according to your docs. Is there any news yet?

Hi stefanv38

We should get the answer approximately tomorrow when all of the tests will be finished. When we receive information about this, we will let you know in this comment thread.

Best Regards,
- Victor

Cheers mate. btw, apart from this, it works awesome. The cascading part is how it should be.

Hi stefanv38

So far, the development team is working on it, in order to find the roots of this behavior. Since it could be caused by any recent updates, this process can take more time than we expected in order to check it all.

Best Regards,
- Victor

Hi,

I’m using FilterEverything Pro with Polylang Pro. Currently, it’s set up not to translate filter sets, which saves me from recreating them all.

However, my filter sets are specific to each product taxonomy, and these taxonomies have translations.

Is it possible to display the filter set in all languages for that taxonomy?

I’ve configured “Where to filter?” to Taxonomy. If I leave it on “Any Taxonomy,” it shows up on all my products, not just the pages of that specific taxonomy. If I choose a taxonomy from the list, I can only select one, and it only works for that language.

Can I select multiple taxonomies in “Where to Filter?” Or is that not possible?

Hi gabriel810

Thank you for choosing Filter Everything PRO.

No, unfortunately, there is no ability to choose multiple taxonomies from that list. This will require creating multiple filter sets.

Best Regards,
- Victor

Hello everyone and thanks for your attention. I would like to ask for help regarding your plugin that I purchased here, I can’t add either the price filter or the filter that shows the subcategories of the searched category. For example, if I open the “Category 1” page it should show on the left “Sub-Category 1; Sub-Category 2; etc.,

Plus I can’t get the license confirmed on Envato, it says I’ve never purchased anything!

Can you help me?

Thank u

Hi beautifullifecreativestudio

Thank you for choosing Filter Everything PRO.

1) Numerical range slider filter – go to the filter set, hit add a new filter, and choose “Custom Field Numeric” If you are using WooCommerce the default meta key for price is _price

2) To turn on hierarchy, you need to go to the filter set navigate to the needed category filter, click “more options” and enable “Show Hierarchy” on the category pages you will see it like this – https://demo.filtereverything.pro/category/health/ you can turn on to hide empty filter terms to “always hide.”

3) In order to get the license, please follow these instructions – https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key We’d recommend using incognito mode for it, in order to log in with the correct account where the plugin was purchased.

Best Regards,
- Victor

Amazing, you are the best. Thank you.

The filters are working fine, but I have issue with the search field. The results are so loosely related to the search querry, that I would even prefer to only search by CPT’s title, but can’t find that option. Any suggestions how to approach it? I’d like the search results to include only the CPTs that have the search term in their title.

I have come up with something like that, but it doesn’t seem to work. The results still include the content of the CPT I’m searching through, which renders the whole search functionality useless. What am I missing or doing wrong?

function limit_search_to_cpt_titles($search, $wp_query) { global $wpdb; }

// Only modify the search query on the main query and if a search term is provided
if ($wp_query->is_main_query() && !is_admin() && $wp_query->is_search() && !empty($wp_query->query_vars['s'])) {
    $search_term = $wpdb->esc_like($wp_query->query_vars['s']);
    $search_term = ' ' . $search_term . ' ';
}
// Modify the search query to limit to CPT 'projekty' titles only
$search = $wpdb->prepare(" 
    AND {$wpdb->posts}.post_title LIKE %s
    AND {$wpdb->posts}.post_type = %s
    AND {$wpdb->posts}.post_status = 'publish'
", $search_term, 'projekty');
return $search;

add_filter(‘posts_search’, ‘limit_search_to_cpt_titles’, 10, 2);

Hi madziel

We’d love to help, but unfortunately, we do not debug/provide custom codes as this is out of the scope of support policies here on CodeCanyon.

Here is an example of the code in the plugin inside how it is adding the search by SKU to the Woo products, so you might want to use this example and make it exclude some entities from searching

add_filter( 'posts_search', [$this, 'addSkuSearchSql'], 10000, 2 );

    public function addSkuSearchSql( $search, $wp_query )
 {
        if( $wp_query->get('flrt_query_hash') || $wp_query->get('flrt_query_clone') ){

            if ( $wp_query->get('wc_query') === 'product_query' || $wp_query->get('post_type') === 'product' /* || $wp_query->get('post_type') === 'product_variation' */ ) {
                global $wpdb;

                $product_id = wc_get_product_id_by_sku( $wp_query->get('s') );
                if ( ! $product_id ) {
                    return $search;
 }

                $product = wc_get_product( $product_id );
                if ( $product->is_type( 'variation' ) ) {
                    $product_id = $product->get_parent_id();
 }

                $search = str_replace( 'AND (((', "AND (({$wpdb->posts}.ID IN (" . $product_id . ")) OR ((", $search );
                return $search;
 }

 }
        return $search;
 }

Best Regards,
- Victor

Thank you, that helped!

Hi, I have created a horiyontal filter: https://www.waschbecken.com/shop/

However it is not filtering, I tried different Where & What to Filter and different Id / Classes but without success. Ajax was disabled.

Screenshots: https://ibb.co/YBLj0DR https://ibb.co/qx8RTDf

Kind regards!

Hi klitzing

We have checked the site, and in the Filter Set changed the query to the second one and hit update, and everything is working.

Also, in the Avada builder we chose the default simple pagination in order to make it work normally, as infinite scrolling using its own logic and ignoring the filtered query. For Woo products, there is this plugin that uses compatible algorithms – https://wordpress.org/plugins/load-more-products-for-woocommerce/

Best Regards,
- Victor

Thank you very much!

Great support!

Hi, on search page (products woo) the filter are not appear. https://tinyurl.com/25c5o2e6 Any suggestions?

Hi rashkoff

Either you are using a search plugin that uses its own not-compatible search template, or your search page doesn’t display widgets. For Woo search it should use the “product search” widget.

In general, there is no support for accounts whose support period has expired following the support policy.

But we can help you later after all requests from accounts with valid support periods are processed. It may take some time – days or weeks.

If you want to receive it faster, please extend your support period, and this request will be processed in the first queue for supported accounts.

Best Regards,
- Victor

Is Item Purchase Code the same as license key? WHen I enter my item purchase code into license key in wordpress, it does not accept it. Where do I find my license key?

Hi optimisticallygreen

Please follow those instructions – https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key in order to get the license key. Also, we’d recommend doing it in the incognito mode.

Best Regards,
- Victor

I have a problem with the plugin. Right after I upload and activate the plugin to my website I get a error message in the back-end. The whole back-end freezes, front-end still working.

Hi HashtekNL

Thank you for choosing Filter Everything PRO.

Can you please send the error text to us? You can send it via PM if you want – https://codecanyon.net/user/fe_support

Best Regards,
- Victor

How can i use seo urls. I know the complete process but I see that with permalink manager plugin I have to use get variable for filtering. this comes with ? query.

Hi mansooryousaf

Can you please explain what exactly you mean by using SEO Rules links?

If you mean how you can turn off friendly URL links from our plugin you can use the code in your functions.php file

define( 'FLRT_PERMALINKS_ENABLED', false );

Best Regards,
- Victor

I mean https://yourdomain.com/color-blue/brand-samsung/ is this possible with flrt permalinks enabled false with permalink manager pro.

Hi mansooryousaf

No, it is not possible as it turns off this permalink manager that makes them look like /color-blue-or-red/size-l/ so they will look like ?color=blur, etc

Best Regards,
- Victor

Is there a way to set a filter value by default when the page loads?

e.g. we’ve added a filter on _stock_status and want to default to showing “in stock” products when the page loads.

Hi 6qtc9cqy5c

Thank you for choosing Filter Everything PRO.

You can delete the stock status filter (it should be deleted) and go to the filters -> settings -> experimental and turn on this option – https://prnt.sc/4wGgNt8hBU1o

Best Regards,
- Victor

Hello, are we able to set custom content like a description for each filter, instead of just letting eg. a H1 be generated automatically?

We want custom descriptions per filter.

Hi matthijscsnl

If you are using the PRO version of the plugin, please make a request from the account where the plugin was purchased. So we can help to solve the issue you are facing.

Also, please provide a more detailed description of the issue with the screenshots, as it is a bit confusing as to what exactly you are trying to achieve.

You can create SEO Rules for each filter mix, etc – https://filtereverything.pro/resources/seo-rules/

Best Regards,
- Victor

Hi Victor, how can we reproduce filters on horizontal layout like in your demo : https://demo.filtereverything.pro/horizontal-views/color-blue/brand-hm/

And I would also like to know how to set the terms inline or on a two columns layout like here : https://demo.filtereverything.pro/elementor/

thanks!!!

Hi eloday64

Can you please specify which filter exactly? How many columns filter?

Those are labels, they will set in the free space or you can use custom CSS to make any of the filter terms to be in as many columns as you need.

Best Regards,
- Victor

Sorry I meant the first filter for this one : https://demo.filtereverything.pro/horizontal-views/color-blue/brand-hm/

Actually I have 10 items so maybe I could set 2×5 columns? https://catalogue.e-bony.com/catalogue/

Otherwise I can reduce to 5, I would just like to test this layout. Thanks!

If you are using the filter widget, you can specify the widget’s horizontal layout and the number of columns. More about it you can read here – https://filtereverything.pro/resources/filters-widget/

If you are using the shortcode you can do it like this [fe_widget horizontal=”yes” columns=”2”] More information about it can be found here – https://filtereverything.pro/resources/shortcodes/

The maximum amount of columns is 5.

Best Regards,
- Victor

Hi i’ve been using your plugin for a couple of days and its working perfectly.

I’m trying to set the filter Titles/Labels to be displayed above every filter but i can’t find a way. can you please assist me ? thank you

I sent you everything in a PM thank you

Hi Spyros12nik

We have checked the site. This issue is called by the “Page transition” from the Elementor settings, it is applying this trigger on “a” tags – https://imgur.com/Oh5lE8H if you turn it off it is working as it should.

Best Regards,
- Victor

ohhh thats unfortunate.. okay thank you so much for the Support Victor

Dear,

I am interested in trying the Pro edition for an eCommerce website, but I am uncertain if the plugin will meet all our needs. Is there a trial period available that allows for a refund and cancellation of the subscription if it doesn’t work out for us? Or do we need to commit to the purchase without any guarantee?

Thank you.

Hey, what is CodeCanyon refund policy? I tried to Google it, it says: If you have not downloaded a purchased item within 30 days from the date of purchase, you may be eligible for a refund. However, in our case, we will download it and use it for max 7 days if it works then we will keep it, if not, we are asking if we can ask for a refund. Thanks again

Yes, that is absolutely okay, if it won’t work on your site you will get a refund.

Best Regards,
- Victor

Ok thank you. I will proceed with purchase.

I just bought the plugin and installed. how can I confirm that license is active and verified for for my specific domain. do you have any client portal where I can view site/ domain license

Hi mansooryousaf

Thank you for choosing Filter Everything PRO.

All you need to do is activate the license in the Filters -> Settings -> License Tab. You can find the instructions on how to get the license key here – https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key

Best Regards,
- Victor

I’m trying a simple function in the Free version to see if this is something I should purchase. I have added a shortcode to filter posts by date. There are really no selectable options in the settings, so I am seeing an “After” and “Before” field to enter filtering criteria. So far, so good. However, when I filter for one full month, it only shows the posts for about half of the month. The pagination also always shows an extra page and if you go to that last page, you get a “page not found error”. Not sure if these issues would exist in the paid version, but I cannot proceed with a purchase until I know I can accurately filter posts by date.

Hi mcaravaglia

Thank you for your interest in the Filter Everything plugin.

If you are currently using the Free version of the plugin, please make a request in the forum section here –  https://wordpress.org/support/plugin/filter-everything/

Also, please include a link to the page with the issue in your request on the forum, so that we can check it out.

Best Regards,
- Victor

PROBLEM
[fe_sort]
does not work, instead it shows error message “There are no Sorting widgets on this site yet. Please, create it first.” Screenshots: https://ibb.co/kgPkCf4 https://ibb.co/5F12spG

using 2024 theme with Gutenberg

EXPECTED Sorting is shown, instead of error message

Hi kens39

Thank you for choosing Filter Everything PRO.

In order to make it work you need to create the sorting widget in the widget area, then you can display it with the shortcode. More about it is described here – https://filtereverything.pro/resources/shortcodes/#sorting-widget under the “How can I find widget id?”

Best Regards,
- Victor

Hey, guys. Sorting of filter elements works incorrectly for Ukrainian alphabet. The letters “i / ї” come first, the rest after.

https://prnt.sc/4CdPn0YLbjj3

Uh, guys, what am I supposed to do with this piece of code? Do you want me to complete the plugin myself?

Hi akaEnot

Well, you can switch this code in the plugin as the previous version wasn’t working normally, so it was rolled back to the default code. When it will be included we as a support team do not decide, as a support team we are trying to help you as much as possible. Until the solution is added to the plugin itself.

So if you go to the filter folder/src/Entities/EntityManager.php on line 999 there will be those functions – https://prnt.sc/tx-uA-SxlSHP

So you can change them for those ones (but please test it on the staging site first):

 public static function compareAsc($key)
 {
 return function ($a, $b) use ($key) {
 $value_1 = isset($a->$key) ? mb_strtolower($a->$key) : '';
 $value_2 = isset($b->$key) ? mb_strtolower($b->$key) : '';

 // Extract numeric and unit values
 preg_match('/(\d+)(\D*)/', $value_1, $matches1);
 preg_match('/(\d+)(\D*)/', $value_2, $matches2);

 $num1 = isset($matches1[1]) ? (int)$matches1[1] : null;
 $unit1 = isset($matches1[2]) ? trim($matches1[2]) : '';

 $num2 = isset($matches2[1]) ? (int)$matches2[1] : null;
 $unit2 = isset($matches2[2]) ? trim($matches2[2]) : '';

 // Compare numeric parts first if both values have numbers
 if ($num1 !== null && $num2 !== null) {
 if ($num1 !== $num2) {
 return $num1 <=> $num2;
 }
 // If numeric parts are equal, compare unit parts
 return strcoll($unit1, $unit2);
 }

 // If numeric comparison is not applicable, compare alphabetically
 $comparison = strcoll($value_1, $value_2);
 return $comparison !== 0 ? ($comparison > 0 ? +1 : -1) : 0;
 };
 }

And

 public static function compareDesc($key)
 {
 return function ($a, $b) use ($key) {
 $value_1 = isset($a->$key) ? mb_strtolower($a->$key) : '';
 $value_2 = isset($b->$key) ? mb_strtolower($b->$key) : '';

 // Extract numeric and unit values
 preg_match('/(\d+)(\D*)/', $value_1, $matches1);
 preg_match('/(\d+)(\D*)/', $value_2, $matches2);

 $num1 = isset($matches1[1]) ? (int)$matches1[1] : null;
 $unit1 = isset($matches1[2]) ? trim($matches1[2]) : '';

 $num2 = isset($matches2[1]) ? (int)$matches2[1] : null;
 $unit2 = isset($matches2[2]) ? trim($matches2[2]) : '';

 // Compare numeric parts first if both values have numbers
 if ($num1 !== null && $num2 !== null) {
 if ($num1 !== $num2) {
 return $num2 <=> $num1; // Reverse comparison for descending
 }
 // If numeric parts are equal, compare unit parts
 return strcoll($unit2, $unit1); // Reverse comparison for descending
 }

 // If numeric comparison is not applicable, compare alphabetically
 $comparison = strcoll($value_2, $value_1); // Reverse comparison for descending
 return $comparison !== 0 ? ($comparison > 0 ? +1 : -1) : 0;
 };
 }

Best Regards,
- Victor

Okay, guys, it’s working. Thank you.

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