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.

the filter work well in the shop page, but not working in the categories page.

Hi 434519193

Thank you for choosing Filter Everything PRO.

Try to create one more filter set, and place it strictly on the sho page “Common WordPress pages + Shop” also, make sure you have chosen the correct query in the “And what to filter”.

Best Regards,
- Victor

Hello, I am trying to add my license key to wordpress for automatic updates but I am getting an error when I submit the code..

This is the error message ‘Invalid license key. Please enter correct license key.’

My plugin is currently locked. Please can you help.

Thank you

Hi PhilCooke1

In order to get the license key, please follow those instructions - https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key please use the browser in incognito mode during this procedure.

Best Regards,
- Victor

Hello good days and may it be excellent. I’m trying to hide out of stock products from the filter, I checked the option: Filters -> Settings -> Experimental turn on the “Out of stock visibility” option. But nothing happened, even clearing the cache. I’m using the latest version of the plugin. Can you help?

Hi samucavirtualite

We have checked it, removed the stock status filter (as only one thing can be a stock status filter or option to hide out of stock by default), and turned off from Woo settings hiding products that are out of stock. Seems like now when you choose any filter terms it will show only the ones that are in stock. Please test it. Also, we turned off the cache plugin in order to be sure it is not catching everything to make such issues. You can first test it all, and then turn on the cache plugin to be sure it is not causing any issues.

Best Regards,
- Victor

It’s working with and without cache enabled now. Thank you very much for the quick support and solution.

Hi samucavirtualite

We are glad to hear that everything is working correctly.

Best Regards,
- Victor

how to show Taxonomy Like Product Categories as Hierarchy Tree ? when support php 8.3 ? it faster 30% than php 8.1

Hi lenka2014

We have forwarded it to the development team, and if all goes well, it should be included in the next update already.

Best Regards,
- Victor

Can we just limit search results to post / product title? That would make the results more accurate.

Hi plato39

The answer was presented in the original comment thread – https://codecanyon.net/comments/30835457 please check it, and let’s continue our conversation there. As long as this is not a new issue in a different area.

Best Regards,
- Victor

When using the search box it gives results based on all text found. This can give undesirable results (you may have repeated ‘recommended posts’ blocks on multiple pages).

How can we exclude sections of text? Are there shortcodes or classes to wrap text to exclude?

Thanks

No, we don’t mean that you are a spammer, we apologize if this was looking like that. What we meant is that creating each new comment as a response, or as a more detailed description of the same issue will be confusing for us in order to track the initial issues, and what steps were already taken. So it will look like you already made the same question in multiple comments.

Best Regards,
- Victor

OK. Please consider adding search scope options in future updates.

There are plans to make it work simultaneously with some of the search plugins, in order to extend its functionality and make it more flexible. We do not have any dates yet, but the development team has it on the list.

Best Regards,
- Victor

Hi there,

I notice when I click on a filter option it shows me “10 products found” etc.

Is there anyway to view the total number of products like this before the filter is chosen?

Maybe it’s a feature you already provide but I am un aware of how to use it.

Hi matthewm174

No, there is no such option, as it shows only when the filtering is applied to the page. You can write your own code which will count products on each page and display that number.

And with the help of template overriding – https://filtereverything.pro/resources/templates-overriding/ and function:

/**
 * @return bool true if it is a filtered page and false if not
 */ 
flrt_is_filter_request();
Usage example:
<?php 
if( flrt_is_filter_request() ){
    // Your useful code
} ?>

You can write put it all together, when showing all products counter and when switching when the page is filtered.

Best Regards,
- Victor

Hello Team I was wondering if you could help me add a Review Score filter to my theme. My theme already has one, but I can’t find it in the Post Type to filter.

Second, I can’t find a button for Clear (to remove the filter from the page) is there a way to show it in the filter set

Thanks for your help

Hi tripidaysegytours

The star rating filter is only available for “Product Visibility” and there is a function that adds the necessary HTML to the terms of this filter – https://demo.filtereverything.pro/example/by-rating/

Theoretically, you can also attach it to your needed entity, but you will have to slightly modify the code of this function in the plugin.

function flrt_term_rating_stars($html, $link_attributes, $term, $filter)
{
    $rating_slugs = array(
        'rated-1',
        'rated-2',
        'rated-3',
        'rated-4',
        'rated-5'
    );

    if( $filter['e_name'] !== 'product_visibility' ){
        return $html;
    }

    if( ! isset( $term->slug ) ){
        return $html;
    }

    if( ! in_array( $term->slug, $rating_slugs, true ) ){
        return $html;
    }

    $rating = 0;
    if( mb_strpos( $term->slug, 'rated-' ) !== false){
        $pieces = explode("-", $term->slug);
        $rating = isset( $pieces[1] ) ? $pieces[1] : 0;
    }

    $rating_html = '<div class="star-rating"><span style="width:' . esc_attr( $rating * 20 ) . '%">' . sprintf( esc_html__( '%s out of 5', 'woocommerce' ), esc_html( $rating ) ) . '</span></div>';

    $html = '<a>'.$rating_html.'</a>';

    return $html;
}

If you have enough PHP skills you can modify it to your own needs.

2) You need a chips widget for it – https://filtereverything.pro/resources/chips-widget/ also you can use a shortcode for it, in order to place it in the needed place on the page.

Best Regards,
- Victor

Hi there,

My filters are showing Nil (0) results even though I’ve got my posts categorized and also assigned other various filterable options to each post.

I’ve just purchased my license and input it within the backend and it’s telling me it’s invalid.

Wondering if this is why things aren’t working?

Would appreciate some assistance. Thank you

Hi websiteguyjh

Thank you for choosing Filter Everything PRO.

1) Go to the filter set settings, and in the “And what to filter?” choose another query and hit update. Then go to the page with the filter and test it, do not forget to refresh the page before testing it. Also, please check the Quick Start guide – https://filtereverything.pro/resources/quick-start/

2) In order to get the license key, please follow those instructions - https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key please use the browser in incognito mode during this procedure.

Best Regards,
- Victor

I keep getting the message “No one Filter Set is related to this page. you can configure it in the Filter Set -> “Where to filter?” Field.

However, in my filter set I have tried post type as Posts and Strains. Adn Where to filter > Pages > Strains

No combination I do works. I am using the Avada theme and ACF for the strain posts. The page is Strains.

Yeah when I try to duplicate what you did on the live site it says ” No WP Queries matched the post type “Strain” found on the page”

For the sake of time, I added you as a user to production too: hempies.co/hub

Hi Matthewbb

We have checked the site, and the issue is in the object cache. So if you go here and click reset – https://prnt.sc/Urrt6cO8w99D everything will appear – https://prnt.sc/nU9Ph9CoYkVU as it will flush the object cache.

You might want to check that because after updating the filter set, or refreshing the page the cache is caching everything again and it is disappearing.

So you need to go to the wp-content/object-cache.php and perhaps turn it off or configure it as you need, so it won’t cache queries on the pages.

Best Regards,
- Victor

Hello! I just bought the plugin. When searching for the widget using Elementor Pro it does not appear. What could be the cause?

I await your help please. Thank you very much

Hello, sorry, now you can access the site: https://emicakes.com.py/agendar/

I just sent you via PM a support account credentials with all permissions assigned. I hope it helps. Thank you.

Hi leonardosalvioni

We have checked the site, and this is a shop page. If you go to the pages, and check that page you will see “Elementor, Shop page” in order to choose this page you need to check “common WordPress pages + Shop page” in your case “tienda” it is working now.

Best Regards,
- Victor

Ok, understood. Thank you very much for your support and explanation!

I am looking for a plugin to help me create a mem website. Basically, we are adding a profile” as a “post” but on the front end of the website we want to be able to put a search feature in place and then a narrow down option. E.g. a search bar which only searches for first name, last name, post id number or keyword and then a feature to enable them to filter profiles by gender, location, and career etc

Also important to mention we use Themify Theme and Themify Builder to set up the posts “profiles”.

Is this possible with your plugin?

Also, do you have documentation to help us design the plugin search to make it look modern / on brand?

Hi fnhc

Thank you for your interest in the Filter Everything plugin.

The search field uses the default WordPress algorithms. If you want to search only by a specific entity, you will need to write custom code that will extend this logic with the necessary conditions.

For this, you can use the WP “posts_search” hook to apply the required conditions – https://developer.wordpress.org/reference/hooks/posts_search/ For the needed CPT.

Best Regards,
- Victor

jacc

jacc Purchased

Hello, The following error shows when the filter only includes search, no additional fields, and the user is not logged in.

Notice : Undefined index: entity in public_html/wp-content/plugins/filter-everything-pro/src/UrlManager.php on line 56 Notice : Undefined index: e_name in

https://dev.plantipedia.com/pollinators/

The filter itself works fine. How can I get rid of the error? Thanks!

Hi jacc

Thank you for bringing this to our attention. We have forwarded it to the development team, and the fix will be included in the next updates.

Best Regards,
- Victor

Hello. Very cool plugin. Thank you We have a question for you We have a post type “catalog” There is a “prod-cat” taxonomy We needed to make it so that products from one selected term were displayed first, and then all other products. We did this with pre_get_posts https://i.imgur.com/yHQE4GR.png There is also a Filter in the archive and it does not work correctly when there is a change function in the custom_order_catalog_posts() request. How can this be fixed? or please tell me some other methods, how to display first the products of a certain category and then all the others in the general request?? https://granit-royalstone.com/catalog/ Thank you.

Hi jagged_star613

Honestly, no idea what can be done here. You can try to modify the wp_query itself in order to make the needed order. But this will require experimenting in order to find the needed pattern.

Best Regards,
- Victor

I need to display different filters depending on the page For example, I have two pages, page a and page b. And I have 3 filters, filter 1, filter 2 and filter 3. I need to show only filter 1 on page a And on page b, filters 2 and 3 should be displayed. I am using elementor to create the web page

Can you please send a link to this template so we can check it? We are not completely sure what you are referring to by Elementor templates.

Best Regards,
- Victor

We have been testing the plugin for several days and it is very incomplete. We cannot make modifications to created filters, we have to delete and recreate them. We request a refund.

The only thing that cannot be changed from the filter set when you already created a filter is its URL prefix.

But you can change the URL prefixes from Filters -> Settings -> URL Prefixes. If you provide more information on the issue, we can fix it.

In general, a refund is possible with the correct form from the account where the plugin was purchased. Please note that the support team is not working on the refunds.

Best Regards,
- Victor

Hello Team I have contacted to you 3 days ago regarding the filter and you have added a code to my function.php which woeks like charm but suddenly the code is not working anymore and doesn’t inhirit the filter to the rest of the categories Can you please check?

Hi tripidaysegytours

What that code did was just pull the exact category at the top, in order to take queries from it. It wasn’t adding anything else.

Best Regards,
- Victor

yes i understand but the queries doesn’t apply on the rest of the categories

Try to check those categories, perhaps they have unique queries, as we assume you did some changes on the site, and more likely it could make them all unique on each page. We are not sure how you are creating it all.

If you have backups you can follow step-by-step in order to find where exactly it stopped working.

Best Regards,
- Victor

Hi! I need to configure the links during filtering.

Currently, the filtering URL with parameters looks like this: /apartments/?max_area=49

I need it to be like this: /apartments/max_area_49 or something similar, so the link doesn’t have parameters.

I’m trying to do this using SEO settings, but not all fields are available there.

I’ll attach a photo and GIF below.

My attributes: https://imgur.com/WtWh8gS Settings “indexed filters” https://imgur.com/HWh8o7x Add SEO Rules GIF: https://kma.pp.ua/yr/1DsuZXP2gj.gif

Hi luchykkolya

Thank you for choosing Filter Everything PRO.

Not with the range slider, the range slider uses the GET parameter in order to meet good SEO Practices, in another case it will generate thousands of pages. What you can do is create a simple filter with a list of values like 30-40, 41-60, 61-100… in order to choose the needed amount of m2. But with the numerical range slider, it is not possible to create what you are looking for.

Best Regards,
- Victor

Hey can you please help I am trying to filter multiple records on one page and I cannot make that happen. https://habbibi.co.uk/a-la-carte-allergen/

I have several sections with titles and I need to get the system to filter the entire page, when you select the different enquiry it just Filter one please advise

Hi pwar1985

Do you want to filter 3 different WP_Queries at the same time? This is usually done to work with a single WP_Query. You can try to apply 3 more sets of filters, exactly identical on this page, and in each of them select a different WP_Query, then it can filter all queries with one filter.

Best Regards,
- Victor

Can you expand a little I really dont understand what this means

1) Do you want to filter it all at the same time in those 3 different columns – https://i.imgur.com/I1AhOYR.png

2) Are hose 3 different columns that use 3 different WP_Queries?

Best Regards,
- Victor

Hello,

Yesterday I bought a license but when I entered the license key it told me “unknown error”, it is not activated with the license key. The installation of the plugin is correct although it does not filter correctly, I suppose it is because the license is not activated

Hi mundoadaptador

Thank you for choosing Filter Everything PRO.

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

Also, please send the license key that you are trying to insert in the license tab.

Best Regards,
- Victor

Guys, I would like to add a filter to previous searched results. I thought adding it trough a widget, but it wont appear. IS that the common error? Or am i doing something wrong. Should work this way right?

So here is how it is working:

1) You create a filter set and place it on the needed page with the “Where to filter” and it will be displayed there. If you create another filter set and place it on the same page, then you can use priority, in order to choose which filter set will be displayed first and which one will be displayed second.

If you want to display two filter sets on the same page, you need to use either two widgets or two shortcodes but not mixed.

So the filter set that is placed on the search page and the one that is placed on the category page are not connected at all.

2) You can use the shortcode [fe_open_button] specifically on the search page in the needed place in order to display the mobile button there.

Best Regards,
- Victor

Victor, thanks. 1)Do i understand it right that, when using shortcode + widget. The priority setting wont work?

2)Is there another way then widgets to place the filter on searchresultpages?

1) We just tested it and it is working in all cases, even if you are mixing widgets and shortcodes.

2) Yes, you can use shortcodes – https://filtereverything.pro/resources/shortcodes/ you can find all of the shortcodes on this page. For example, you can check this search page template using hooks and place the shortcode on the needed hook.

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