Code

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Discussion on Filter Everything | WordPress/WooCommerce Product Filter

Cart 15,681 sales
Recently Updated

Stepasyuk supports this item

Supported

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

8965 comments found.

Hi,

You recently helped us debug a piece of code that was preventing the search filter from functioning properly. However, that piece of code allowed us to extend the search to all custom fields of the post type.

Do you have any solutions that would allow the search function to work with all (or a set of) custom fields of the post type? I think it currently only supports the title and content.

Hi webdev138

No, unfortunately, support does not provide/debug custom codes. What we did on the site, in order to find this code was already above the scope of support policies.

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. But before that, we’d recommend checking the plugin code, in order to make it work properly without any issues.

Best Regards,
- Victor

Subject: Request for help creating a custom filter

Hello,

I am a user of your WordPress plugin and I need help creating a custom filtering system on my portfolio page.

In my WordPress backend, I have a set of projects grouped in a taxonomy called “Portfolios” that have different categories.

I would like to create two connected filters on the same page:

The first filter would contain only two specific categories (for example, “Category A” and “Category B”). With this first filter, I could filter my projects in these two categories. The second filter would contain the rest of the categories (for example, “Category C”, “Category D”, etc.). Once I have filtered with the first filter, I could continue to refine my filtering using this second filter. Is it possible to implement this type of custom filtering system with your plugin? If so, could you guide me on the procedure to follow?

I remain at your disposal for any additional information.

Thank you for your assistance, Ahmed

The custom post type is added automatically by the theme as the default because I am using a premium theme.

That’s absolutely okay, you still can create a custom taxonomy for this CPT that your theme is creating, with the help of this plugin – https://wordpress.org/plugins/custom-post-type-ui/

Best Regards,
- Victor

ok thanks

Hello!

I need to make the list view always visible and show the subcategories open by default. Is this possible?

In addition, I need to give a different design to the display of subcategories, can it be done in a generic way to all at once or do I have to modify by css according to the id of the category?

https://imgtr.ee/image/hCnmBF

Thank you very much for your help

Hi ovabelenda

Thank you for choosing Filter Everything PRO.

For both things, you can use templates overriding – https://filtereverything.pro/resources/templates-overriding/ in order to make it as you want.

For the opened hierarchy you can use custom CSS to make them always display, or use this hook:

function flrt_hierarchy_opened() {
    return apply_filters( 'wpc_hierarchy_opened', [] );
}

Best Regards,
- Victor

Great! Thanks

Hello,

I encounter an issue with my filter sets which are mixing several categories into the dropdown options. The filter sets should only display the category I have selected, but it displays other categories as well.

Some categories work fine and don’t mix with others, but some include other categories. I’m unable to find the right solution for this. Can help me identify which mistake in the settings?

This is the page: https://setdestinasi.com/tempat/

Thank you.

Hi shamhardy

Thank you for choosing Filter Everything PRO.

Try to turn off infinite scrolling, and use just a normal numerical pagination (without AJAX). Then filter if it will show everything correctly.

Best Regards,
- Victor

Hi Victor

Finally that solved the problem.

I hope in the future, that infinite scroll issue can be resolved.

Thank you!

Hi shamhardy

We are glad to hear that it is working. If we get any information on it we’ll let you know.

Best Regards,
- Victor

Hi, I am in need of help! this is my site. https://californiaselfdetermination.me/our-trusted-providers/

I am trying to create a “Business Directory” on this page using Posts to highlight business and profile information for clients and then would like these posts filtered onto this page using the filter widget on the left side. The idea is to have the filter be able to sort through everyone by location, skill set, demographic, type etc.

I have tried everything and am not sure what I’m doing wrong. It keeps telling me that “No wp queries matched the post type “ post” found on the page” I’m not sure if that’s why its not showing my sample post with the location set to on it.

I can create you a login if needed as well

thank you for any help!

Hi jonathonrietz86

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

Also, please send the link to the page where you want to display your redirection filter and the page to the one where you want to be redirected.

Best Regards,
- Victor

Hey team,

The credentials have been sent and the backups have been created. Please let me know if anything else is needed.

Hi webdev138

We have checked the site, and the issue is in the custom code in your custom theme functions.php file. If to be more specific from line 32 to line 90. If you comment it out everything will work as it should. So you might want to debug this code of yours.

Best Regards,
- Victor

I have bought a license 1 month ago but when I try to enter the license I get a message which says that my license is invalid.

Hi noahwinkelman

Thank you for choosing Filter Everything PRO.

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

Hi Victor, great! That worked. Thank you!

Hi, we have already contacted you for assistance and I thank you again.

I need some more help.

My site is this https://accademiamilitarenapoli.it/categoria-prodotti/associazione/

1) I would like to ask you for support. I would like to show only the subcategories of the open category page, not all the categories present on the page.

https://accademiamilitarenapoli.it/categoria-prodotti/associazione/

For example, on this page above there are two parent categories when instead I would need to show only one parent category.

2) The second help is knowing if there is a way beyond CSS to customize the aesthetics of the filter.

Thank you very much, I await your reply

So you want to hide parent filter terms in here – https://prnt.sc/8eLTYiBANDqz

Best Regards,
- Victor

Yes, I want to show only the children of “Equipment” which is the category I requested.

Thank u, Vincenzo

There is no functionality in the plugin that will do it, as it will break the hierarchy view in general.

You can use custom CSS in order to make it look like this – https://prnt.sc/NPwuZNjw4lsN so it will be more put together, but you cannot remove the parent category from the vies, well you can hide it with CSS but then you need another code to make them always opened.

Best Regards,
- Victor

Hi, I have created an elementor page and have imported using a shortcode the products in a specific category. How can I use filter everything on an elemetnor page? https://feeldazzling.com/sun-amp-tanning/ this is the page in question. I would like to have the sorting as well as the filter sets. I have already tried to import the filter as I would in the elementor template builder (which works) but did not have any success. Thank you

Hi gabrielp103

Can you please provide more detailed information on this “imported using a shortcode the products in a specific category”?

You have a singular page so in the “Where to filter” you need to choose “Pages + Name of the page” and in the “And what to filter” the query that is responsible for displaying your posts on the page.

What do you mean by importing? All you need to do is either use a shortcode or a widget on your page. In Elementor you can find our filters in the WordPress section, but the search cannot find them. or use shortcode [fe_widget]

Best Regards,
- Victor

Hi. I’ve added the shortcode to the template with a wp_query for custom posts. The results are always the duplicate of one of the correct posts.

So, if there are supposed to be 3 posts as per the filter, all 3 posts shown are the same ones. How do i go about getting the correct results? Please help.

Hi deevishwanathan

Thank you for choosing Filter Everything PRO.

Please send the link to the page with the issue so we can check it. Also, please provide step-by-step instructions on how we can recreate this issue.

Best Regards,
- Victor

Hello ! Im just confuse on how to add Size , Color and Rating

Hi paulgaw

Thank you for choosing Filter Everything PRO.

You need to create those attributes in the Products -> Attributes, and then apply them to your products. In the filter set, you can create a filter set by product color, product size, etc from the attributes that you created.

Best Regards,
- Victor

is there a way that i can get the filtered URL and use it as a standalone URL and use it on some other page on my website

Hi WebWorxLabs

Thank you for choosing Filter Everything PRO.

When you filter your posts on the page it adds URL filter particles, so when you copy this link and use it it will open a page with the chosen filters.

In order to filter things on the page, you need to apply a filter set on this page and choose the needed query, by adding URL particles on any page won’t do filtering, it will only cause a 404 error.

Best Regards,
- Victor

Hi The filter of the home page (horizontal) is not displayed on mobile how to correct the problem ?

>>> Your answer :

it depends on how you built it. If you used two widgets or two shortcodes, for desktop it will show one data, and for mobile another data with the second shortcode or widget. Then it won’t be shown as you need to use one shortcode or widget area in order to display the filter set. As if there’s two in one it will be shown and the second one will be empty.

there is only one filter on the home page (1 shortcode) it is not visible on mobile

why the filter is not visible on mobile ? https://cpf.bluetree-digital.net/

Thanks

Hi Bluetreedigitaldz

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

Best Regards,
- Victor

HI admin account information send the plugin key is not activated ( bug ) Thanks

Hi Bluetreedigitaldz

We have checked the site, and here’s what we did.

1) Go to the filters -> settings -> experimental and turn on this option – https://prnt.sc/2u2Pv8VReGvK in order to hide all default mobile buttons, and display them only via shortcode.

2) We have edited the page with Eementor and added the mobile button shortcode – https://prnt.sc/T038OHPp8y46 also we added a background color for it in order to make it more visible on the mobile.

3) In mobile mode everything is displayed as it should – https://prnt.sc/r7TgUuhJbD19

Best Regards,
- Victor

Hello! I hope you’re doing great! My question is how can I use the license in staging and productive environment at the same time.

Hi ACCSCIENT

Thank you for choosing Filter Everything PRO.

All you need to do is simply activate the license on prod and on staging from the Filters -> Settings -> License tab.

Here you can find the information on how you can get the license key – https://filtereverything.pro/resources/license-key-issues/#how_to_get_the_license_key

Best Regards,
- Victor

Hi Stepasyuk,

We are using your pro filter plugin on our peer card page (https://peer.acelero.com/peercards) and we came across an issue.

The Problem: The filters work fine on their own and the search works fine on its own. However, when you try to apply both a search and a filter no results are returned.

An Example: Use the search field to search for activities with the word “Shape”. Several results are returned. Then use the “Domain” filter and select the “Creativity” domain. There should be 20 results returned but no results are returned.

We really appreciate your support and please let me know if you need anything else from me.

Thanks!

Hi webdev138

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?

Best Regards,
- Victor

Hello! Thank you very much for the prompt answer! Please help us to define what HTML id or class of the Posts Container we have to use for Ajax. We thought it was .uk-text-center, but it is not working.

Hi zhenekpo

Please check this documentation page with instructions on how to get it – https://filtereverything.pro/resources/ajax-instructions-only/

Best Regards,
- Victor

Hi, I followed the PHP and CSS to make the dropdown filters with multiple select (a few comments down on this page). It worked really well, however, I’m struggling with having the dropdown being open by default each time the page loads. Are you able to assist with having the dropdown closed by default on page load? Thanks!

Hi Saltech137

Here’s what you can try to do, remove the PHP code with the JS inside, save the changes, open the page with filters, and close all of the opened dropdowns, refresh the page to see that they all are closed. If they are closed, use the PHP code again, and then test it.

Best Regards,
- Victor

HI, Hope you’re well. I’m wondering if there is a way to have the filters display on other pages in the same way they do on a brand/category/attribute archive page. I.e the filter on desktop is in a side bar, and on mobile that collapses and shows the square filter button above the products grid.

I’ve tried to use the sidebar widget method on a page – however, the side bar displays the filter under the main content at the bottom of the page.

Is there a way to have the same style (filters in sidebar on desktop, filter slide out button on mobile) on “normal” pages” ( non archive pages?)

Many thanks in advance :)

Hi itsmeifti

Yes, it is possible, everything depends on the page template and where the sidebar is in desktop and mobile mode. You can check this page about mobile mode – https://filtereverything.pro/resources/mobile-devices-new-approach/ there is a lot of information about this in mobile mode.

Best Regards,
- Victor

Hello, I encountered a problem with generating a huge amount of cache after installing your filter. We use beaver builder and it generates cache files every minute. Have you encountered this?

Hi rankedgroup

Thank you for choosing Filter Everything PRO.

We never heard about such an issue before. Not sure what this beaver builder is generating every minute, and what type of cache it is using. Perhaps, it would be better to redirect this question to builder support.

Maybe there are some types of settings to remove certain caching from the site with the use of wildcards to exclude caching.

Best Regards,
- Victor

Thus, we disabled it in WP Rocket, but there is no such option in beaver builder. Because the cache of pages of beaver builder itself is generated there. The generation disappears when the filter is disabled

We did a small research on this topic, the Beaver builder doesn’t have the option to turn off the cache. Maybe there are programmatic ways to do it with the help of hooks.

But then the only way to get the freshest information on it is by contacting their support, so they can provide some information on this topic.

Best Regards,
- Victor

Hi There,

Is there anyway that we can create a filter set and add specific filters to that set and assign / show them on particular set of categories? Like a,b,c categories 1 set and d,e,f categories on 2nd set.

Currently I am unable to add multiple pages under where to filter option.

Thanks

Hi shashikantatmakuri

No, unfortunately, there is no ability to choose multiple pages in the filter set “Where to filter”

You can display one filter set on all category pages, and for the rest, you would need a separate filter set for each category page.

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