Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 16,187 sales
Recently Updated

Stepasyuk supports this item

Supported

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

9146 comments found.

Hi. I’ve managed to add custom taxonomy to filter posts in a single page. Then I added the field to search for a text on that same page. I have created another set of filters to display on the search result page. But that result shows all the content of the web that has that word (posts, pages) My intention is only to filter a certain post (or by category or by taxonomy) but right now the search result is total (post and pages)

I see in your demo by default https://demo.filtereverything.pro/?s=nam&post_type=post But if you search again the url changes to https://demo.filtereverything.pro/?s=nam and shows all contents. How can I force the search results to be a filter for a category of posts?

Best regards Pedro

Hi Pedro.

Thank you for using Filter Everyting PRO.

In this case you can modify your “searchform.php” file in your theme and add the parameter “post type” in the search form. For example:
...
<input type="hidden" value="post" name="post_type" id="post_type" />
...

Here are more info about that – https://developer.wordpress.org/reference/functions/get_search_form/

Hi

I am having some issues with the pro version.

1. I have set SEO Rules for a Brand (Say Nike). If i go to the brand filter for nike it shows the SEO Description. So works properly.

However if i then add extra filters on the front end of the site for say “shoe size” or “gender” then as soon as i go to them the SEO Description for disappears.

On the SEO Rules page i tried doing “Any Shoe Size” or “Any Gender” but whenever i go to these filters it still doesnt show.

Basically i want it so that when i go to to any additional filter from the main brand it still shows the main brand SEO Description

2. How do i put an SEO Description and Title on the actual Shop page? It says “This is where you can browse products in this store.”

3. Lastly i have an agency and would like to purchase more than one license at a time. Do you have the ability to support agency licences

Hi jon_efc

Thank you for using Filter Everything PRO.

1. To show your SEO description on pages with combination of filters Brand + Size + Gender you have to create separate SEO Rules for such pages. So that one SEO Rule for the Brand page, one SEO Rule for the combination of Brand + Size and one SEO Rule for the combination Brand + Size + Gender.

Pages with Brand, Brand + Size and Brand + Size + Gender are different pages from the SEO point of view and they expect that you have to use different SEO Descriptions and that’s why they require different SEO Rules.

2. If you mean your Shop page without selected filters you have to set SEO data in some another way. For example with Yoast SEO plugin or another similar. Filter Everything PRO allows you to set SEO data only on filtering result pages.

3. Yes, I have ability to sell license with unlimited websites supported for agency. Please, write me message in PM and I will provide you with details how to do that.

Thankyou, i have sent you a pm ref point 3

In regards to point 1

I have set a meta description for the main BRAND. But any of the filters of that brand use exactly the same description. If i have to add it for every possible filter then the issue is that there is 9 filters for the brand and its hundreds of filters i need to create when i dont SEO filters for them additional options, just the descripition of the base product it is on.

Any ideas on this point?

Hi jon_efc

Sorry for the late response.

You don’t need to create SEO Rules for every Brand. Just create one SEO Rule with Brand and insert in the meta description variable {brand} ( or { your_brand_prefix } ) and for every selected Brand this var in your meta description will be replaced with the Brand.

Hello, I would like to put several filters which are made with product tags to the same product product category, e.g. one filter according gender (with product tags for woman, for men) and second filter according kinds of products (with products tags which stand for different types of goods).

I am not able to create more filters under the same filter set with different product tags (in the same product category). There can be only one filter with tags. If I create another one filter set for the same category, it doesn´t appear on page.

Is there any solution, how to create more filter in the product category, based on product tags?

Thank you. BR. Martin

Hello Martin.

If you use the same entity (product tags) in two or more Filter Sets on a page the logic between them is the logic selected for both these filters. Please, check both product tag filters and ensure they have logic “OR” in their settings.

Hello, thank you for your reply. I check it and I have filter logic in both filter sets “or”. You can see the problem on page – https://bohemiagifts.cz/k/kosmetika-podle-pouziti/kosmetika-do-koupele/ . If I use the first filter “PŘÍPRAVKY DO KOUPELE (choose kind of product)” there is e.g. 35 products in set. If I add second filter “určení (for women, men, children), it adds other products e.g. for men and ignore the first filter. How can I eliminate it? I need combination of both filters (I would like to choose the product and show only the products e.g. for men). Thank you.

Hello Martin.

As I understood from your goal you need to select products that are presented in both filter terms – for example “pěny do koupele” and “pro muže”. In this case you have to set logic for both filters “AND”. In such case these two selected filters will show you products that belong to both Product tags simulteneously.

Please, let me know if it was helpful for you. Thank you.

Hi, the plugin dosnt do what i need it to do. Can i please get a refund?

Hi pixelcreated

You can create a refund request in the form in your account here on CodeCanyon.

Hi, how can i stop the select filter showing true / false options?

Hi pixelcreated

Thank you for using Filter Everything PRO.

I’m not sure I understand what exactly is your problem. But if you provide me with link to the page and description what works wrong, I can help you to solve this.

I was able to make the filtering work after hours of trial and error BUT one issue remains:

I’ve created a search results template and I’ve created a seperate filter set for “search results” with “where to filter” set to “Common wordpress pages” and then “search results page for selected post type” (which is products).

“What to filter” is set to “Search product query. Main Query” and I only have one filter now for testing. Whatever I search the filter updates numbers accordingly to the search results but the filters themselves do now update the search results content.

If I search for example “tree” it creates a URL ending ”?s=tree” and when I click on a filter “blue”, it adds “color-blue/?s=tree” to the URL. Nothing updates though.

Is there a way to somehow change this and make the filtering work also on search results page?

Hey!

Thank you. Getting one step closer.

If I understood how to read the query monitor data, it is telling me that my search results use a query called “7FiSJ_Posts”

I have no idea where it is coming from or how to select this in the filter everything queries tab since all the queries are in the form:

“product query #”

Here’s the data: SELECT 7FiSJ_posts.ID,7FiSJ_posts.post_content,7FiSJ_posts.post_excerpt,7FiSJ_posts.post_name FROM 7FiSJ_posts WHERE 1=1 AND ( 7FiSJ_posts.post_name IN ( ‘common___search_results’ ) OR 7FiSJ_posts.ID IN ( SELECT 7FiSJ_posts.ID FROM 7FiSJ_posts LEFT JOIN 7FiSJ_postmeta ON ( 7FiSJ_posts.ID = 7FiSJ_postmeta.post_id ) WHERE 1=1 AND 7FiSJ_postmeta.meta_key = ‘wpc_filter_set_apply_button_post_name’ AND 7FiSJ_postmeta.meta_value IN ( ‘common___search_results’ ) ) ) AND 7FiSJ_posts.post_type = ‘filter-set’ AND ( (7FiSJ_posts.post_status = ‘publish’) ) ORDER BY 7FiSJ_posts.menu_order DESC, 7FiSJ_posts.ID ASC

Just so you can check: https://stock.jumicreative.com/?s=tree

You can see that the plugin does detect the results correctly but once a filter is clicked, it doesn’t update the results.

If you check on the shop page: https://stock.jumicreative.com/shop/

The filter plugin is set up to filter on all product archive pages and it works just fine.

Hello Visualsofjulius

Please, send me credentials to your /wp-admin in accordance with this document I will check it myself. But please, do all things in accordance with the document.

Thank you.

Hi.

I use ACF for filtering with your plugin.

The issue is with showing labels instead of values of checkboxes. In ACF i have next one syntaxis:

value : label

I have fount the solution from you to add code to functions.php

1. ACF field is Taxonomy object – https://gist.github.com/wpserve/0634299bcc67d03bef77119dd20c86e7

2. ACF field is field with choices – https://gist.github.com/wpserve/48277fc0320239d05b1d6e2c4da3db20

3. ACF field is post object – https://gist.github.com/wpserve/a9a58cb8a37be1472ded53296147cc56

But anything changes, trying all solutions – nothing happend.

Link is: https://idm-eterno.ru/portf-test/

I can send you login and show functions.php, may be i’m doing smth wrong…

Thank you for your time!

Already solved.

Hi, I have a hierarchical custom taxonomy but the filter appears all on a single row. How can I show hierarchy, please?

https://marcof80.sg-host.com/corsi/ Screenshot here: https://ibb.co/KKFXZSB Thank you, have a nice day M https://ibb.co/Y7yy5fG

Hi talentsrl

Thank you for using Filter Everything PRO.

You have to enable the “Show Hierarchy” option for this filter under its “More options” section.

Good evening. My page have a lot of categories and even more attributes. Is it possible to automatically show filters of all avaiable attributes after choosing category, without adding them one by one?

Hello fyftofg

Thank you for your interest in Filter Everything PRO.

In general yes, it is possible. I can give you advices how to achieve that in terms of the PRO version support.

Great to hear that. Last question before buying. Can that mobile off canvas widget be done on desktop also? I really want that functionality.

Hello fyftofg

Yes, sure. You can use special hook to set “mobile breakpoint” width value for the Filters widget. I will provide you with such hook example.

Hi,

I’m pulling my hair out try to get this to work but all I get is the same error:

Error! No ‘FilterEverythingFilterSortingWidget’ widget registered in this installation.

I’m currently using oxygen builder with ACF, however tried with just normal post categories and still getting the same problem. I’ve used a single and archive page template but the same problem. Can you please help??

https://dev.southportphotographic.co.uk/gallery-page/

Thanks

Hi. I’ve managed to get this working with the only plugin which seems to work with Oxygen which is ‘Content Aware Sidebars’ which uses shortcodes. However the big problem I’ve come across is that everything works apart from the drop down menu which does not display the relevant items. I know the filtering works as when I use checkboxes/list it displays fine ONLY have this problem with the drop down. Please see here: https://dev.southportphotographic.co.uk/gallery-page

Can you PLEASE help? As this has taken a long time to get here

Hi can you PLEASE respond to this. I desperately need to get this sorted. Is this a problem that can be solved or a bug???

Hi mack32uk

Sorry for the late response. I’ve checked the page by the link you provided and I do not see any problems. Maybe you temporary removed it. Please, provide me with screenshot of the problem or other obvious description of it.

Thank you.

Hey! I just purchased the PRO version for my stock image website so customers can filter based on several attributes. No matter what I do, I can’t seem to make the filter update. It displays all of the info correctly but the content doesn’t update. Any idea why? I am new to wordpress in general so it’s probably a dummy mistake from my end. Here’s a link: https://stock.jumicreative.com/product-category/stock-images/indonesia/

It also seems like something is overriding the settings of how everything looks. Nothing is aligned and displaying smoothly.

I know this can’t be because of the plugin but rather something I’ve done wrong but I’ve spent the whole day problem solving. My WP_Queries show 96 product queries :D No idea how to determine which one is the right one other than it states on one of the queries: “Main Query” And when this is selected, the filter numbers update.

Still not updating the posts with the filters.

Visualsofjulius, greetings to Finland.

Thank you for using Filter Everything PRO.

As I see now filtering works and I’m glad that you were able to solve the problem by yourself.

Hey! I just purchased the PRO version for my stock image website so customers can filter based on several attributes. No matter what I do, I can’t seem to make the filter update. It displays all of the info correctly but the content doesn’t update. Any idea why? I am new to wordpress in general so it’s probably a dummy mistake from my end. Here’s a link: https://stock.jumicreative.com/product-category/stock-images/indonesia/

Hi juliusk14

Thank you for purchasing the plugin.

Please, write your support request from the account, where you purchased it.

Thank you.

Hi, I can’t get the order of the filters all right. The filters “Bijbellezen” and “Christelijke feesten” are fine. How can I get them all like this?

You can view it at https://www.go.pluimersmedia.nl/category/in-het-gezin/

Hi Andre1964

Thank you for using Filter Everything PRO.

If no one from the sorting options was good for you you can use hook ‘wpc_terms_before_display’ to sort them via code – https://filtereverything.pro/resources/hooks/#terms-before-display-hook Of course this expects that you are familiar with PHP or you have to ask a developer to help you with this.

Hi,

I’m using divi with a custom build woocommerce store. The filter does not update the search results. This only works when I don’t use a custom store but just the standard woocommerce one. There’s full divi support but I can’t seem to get it to work. Could you please help me out? This is my url: https://groots-trading.com/shop/

When selecting a filter the results won’t update.

Looks like AJAX doesnt work for Divi at all. How to fix that?

Hi Marnickdegroot

Thank you for using Filter Everything PRO.

To make AJAX work you have to specify correct value for the “CSS id or class of the Posts Container” option and it should be #shop-result

Also you have fade-in effect on your product images and it may not work after AJAX loaded filterd products. To solve this problem you can disable fade-in effect or to re-init its JavaScript code after AJAX finished its work. Here are common details about such problem – https://filtereverything.pro/resources/ajax-related-problems/

Hi. I recently purchased your plugin. I am trying to get it to work on a custom archive I have rendered using the WooCommerce [products] shortcode. Specifically, I am using the shortcode with the ids attribute like so: [products ids=”83,68,70,66,64,62”]. I have created a filter set with only the product category filter in it. The filter widget correctly displays the categories and number of products in each category. But when I try to filter the products by any one of the categories it does not work. I am running the shortcode on a custom post type template using the “echo do_shortcode()” expression.

Hi itfluently

Sorry for the late response.

If your listings are singular pages from WordPress point of view, you have to create individual Filter Sets for every such listing (singular page).

I know that it is inconveniently but first of all WordPress singular pages were designed to place there single post content. As Page Builders allows to place there post grids my plugin also allows to filter that grids. But in 99% cases such post grids are different from one single page to another single page. And this requires different Filter Sets as different WP_Queries should be filtered in different way.

I can add to my plugin feature to allow to filter on multiple singular pages with the same Filter Set, but it can be possible only in case if all these singular pages contain the same post grid. And in most cases such option will be to0 complex for understanding for most of users and 99% of them will ask me why their Filter Set does not work on all their singular pages :-) So current solution is the least of evils and requires individual Filter Set for every single page.

Aww…I was hoping this would work. I did try out the free version available on WordPress.org before buying. The field, “Where to filter?” is disabled for filter sets in the free version, so no way of knowing if this feature would work for me without a purchase. It is not feasible to create clones of the same filter set for every listing – imagine if I had 1000 listings :) Regrettably, I must ask for a refund. Perhaps I can find a solution elsewhere. Thanks for your understanding.

Hello itfluently

If you want to use the same Filter Set on every singular page you can use next code example to achieve that:

add_filter( 'wpc_relevant_set_ids', 'set_my_filter_set_for_all_singular_pages', 100, 2 );
function set_my_filter_set_for_all_singular_pages( $filterSets, $queriedObject ){
    // for example desired Filter Set ID is 1729
    // var_dump( $filterSets ); uncomment this one time on the page, where you pointed your Filter Set to get array's data like 'query', 'query_location' and so on
    if( isset( $queriedObject[ 'post_id' ] ) &&  in_array( 'page', $queriedObject[ 'post_types' ] ) ){
        $filterSets = [];
        $filterSets[] = array(
            'ID'                 => (string) 1729,
            'filtered_post_type' => 'post',
            'query'              => 'cf5076e3c7b78db6761d8f3cd553e838', // query hash
            'query_location'     => 'page___1587',
            'query_on_the_page'  => true,
            'page_search_keys'   => array(
                "page___1587" 
            ),
            'show_on_the_page'   => true
        );
    }

    return $filterSets;
}

Hi there – just purchased your plugin. I’m having trouble with Category Order – My hope was to have the categories appear in the order I’ve defined in the Product Categories section, I don’t think this is an option? There is a greyed-out option called ‘Menu Order’ – not sure if that was supposed to be it. Default order looks to display the order in which the categories were originally created. Is there a way to achieve this? Thank you.

Hi larrychartier

Thank you for purchasing the plugin.

By default Menu order value is available for WooCommerce attributes that contains this order. For Products categories it also available in the next plugin version. I can send your this pre-release version if you write me message in PM, but please let me know here that you sent it.

To hide empy filters please select Empty terms – > Always hide in the Filter Set settings.

Ok – that would be great. Thank you. I’ll send you a PM now.

Hi larrychartier

I’ve sent you email with link to the pre-release plugin version.

Are there any plans to add a post content/title Search field to the filters (not just filter search)? If not do you have any suggestion on what to use in conjunction with your plugin?

Hello MartinNorton

Sorry for the late response. Users with valid support period have higher priority in the support schedule.

I have plans to add search field compatible with filters and especially with the AJAX function, but when this will happend I do not know. It may take several months for implementing.

Any search plugin or feature (for example WordPress default Search widget) is compatible with Filter Everything PRO if they use WP_Query for their search algorithm. In other words you have to test them manually to find out if they are compatible.

Hello MartinNorton

I’m glad to inform you that built-in Search Field compatible with filters, AJAX and that allows you to search Woo products by SKU was added to the latest plugin version 1.7.8. You can update it automatically if you have activated your License key or download zip here on CodeCanyon.

Thank you. Regards.

That’s great news, thanks for the update!

Hello! I have created an seo rule according to the documentation. Enabled indexing of the necessary attributes. In the seo rule, I selected the necessary filtering parameter, filled in Title, Description, H1. But the rule does not work: Title, Description and H1 do not change on the filtering page. The site is open for indexing. In the “Indexed Filters” settings, I enabled indexing of the necessary fields, but indexing was not enabled on the site: there are canonical references to the main category. What could be the problem?

Thanks! Now the Name and description are displayed, but the H1 specified in the rules is not displayed. Could it be related to the features of the wordpress theme?

Sorry, I made a typo. Title and descriprion are displayed

Hi Booozz

Yes, exactly. Your theme does not use typical WordPress hooks/actions for the H1 title and that’s why it does not change by SEO Rule.

By default Filter Everything uses 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 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 );
}

You have to add this code in the functions.php of your active theme and change it in accordance with the hook your theme uses.

Hello Stepasyuk! View in Widget -Slider not working with custom field (ACF numeric) I get 0-0. If I named the custom field price, then it works. How is this possisble? Can you help me figure it out? Thanks

Hello pcinfogr

It is possible only in one case – data stored in the Custom Field you specified in the Numeric filter:
1) are not numbers
2) they have different structure for different posts (somewhere numbers, somewhere serialized data)
3) you specified wrong meta key for your Custom Field

All these can be checked directly in the DataBase for example with PhpMyAdmin pluign for WordPress.

Hello again! Thank you for the response.

I have already checked the above.

1. the ACF field is numeric 2. All the fields in posts are integet (50-1500) 3. It is the correct since is visible in the filter form

All the other things are working correctly. This field is also visible in form but only shows (0-0 If I try this (the same exactly proccedure) but instead of my field, have a field name price, its working.

I also have qtranslateX as 2 languages for WP, if that makes any diffrence. Although the other things are working correctly

Hello pcinfogr

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

Thank you.

Hi

I have 3 custom taxonomy filters running and am trying to get the posts that display to follow in an order set by a plugin which allows you to set the order for each category (https://wordpress.org/plugins/reorder-post-within-categories/).

If there is another way to do it then great, not fixed on the reordering pluing … custom order for results would be the last bit of the jigsaw of the site.

Thanks in advance Richard

Hi Ctrl-X

Thank you for using the plugin.

In general Filter Everything PRO allows you to sort your filtered results by many parameters with Sorting widget. But it seems you need them to be sorted in specific order by default. If you do not want to use any plugins for that and do not use Sorting widget you have to add specific code to your WP_Query that sorts results by desired criteria. You can achieve this using hook ‘wpc_filtered_query_end’ that is presented in the plugin and it works only for filtered WP_Query.

P.S. You have nice username, btw :-)

Thank you for getting back to me. I have solved the problem using another pluing so would be very grateful if you could process the refund. Thank you.

Hi Ctrl-X

I’m sorry that you were not able to make it work with Filter Everything PRO.

If you need to request a refund, please use appropriate form in your account here on CodeCanyon.

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