8967 comments found.
Hi,
It worked. But now the pop-up is at the bottom of the archive pages on iPad and Mobile. https://nrgel.se/produkter/laddkablar/ Even though I have activated the option to force the sidebar to the top on mobile. Still it does not effect it. What now?
I do not see any option in the comment section to replay directly to your messages. I googled it and found nothing about being able to reply to comments. And I do not find anything on Codecanyon about this either.
Kind Zayn
It looks like you have already fixed it – https://prnt.sc/R2qpn5UlftEN as it is not at the bottom of the page anymore. However, how to fix this type of issue is also described on the same page.
As to the “I do not see any option in the comment section to replay directly to your messages.”
You can use this form to contact Envato support – https://help.author.envato.com/hc/en-us/requests/new And ask them how you can do it.
Best Regards,
Victor
I found it in the end. Both the reply section and the solution to show the pop-up at the top. Thank you for the support!
You did a great job!
Best Regards,
Victor
Hi,
The pop-up widget is showing on the home page in Mobile view. Very weird thing here. What do I miss here? https://nrgel.se/
Kind Zayn
Hi Zayn
If you scroll a bit further down on the page we sent in the previous response, you’ll find an example of such a case and how it can be fixed – https://prnt.sc/eSN8YYGZRbQ3
https://filtereverything.pro/resources/mobile-devices-new-approach/Best Regards,
Victor
Hi,
The filter does not goes to pop-up mode in iPad. Only on phone screen. And in iPad it is still in the desktop mode. How can we tell it to be Pop-up Filters Widget for iPad too?
Kindly Zayn
Hi Zayn
Please check this page – https://filtereverything.pro/resources/mobile-devices-new-approach/ there will be a code that can change the breakpoint of a mobile button.
Best Regards,
Victor
Hi,
How do I replay when I get a message from you?
The page did not show to you because our store was hidden from outside visitors. But please check this now: https://nrgel.se/produkter/laddboxar/tillverkare-amina-or-charge-amps-or-ctek-or-garo-or-zaptec/
Kindly Zayn
Hi Zayn
Go to the Filters > Settings > General > and remove not required hooks from here – https://prnt.sc/662vk3WBNGAK and hit the save button.
As to the response in the same comment threads, would be better to ask CodeCanyon support, so they can provide some information on this.
Best Regards,
Victor
access credentials sent
Hi informaticamediaadgo
Done! The issue is that you used the same slugs for filter prefixes as already created for other pages on your site. This is causing the conflict, they should be unique.
Best Regards,
Victor
Hello Victor,
Yes, but we need clean URLs without fe_ tags.
Our SEO manager doesn’t want this because he says it’s not good.
Isn’t there a way to exclude sitemaps from the plugin’s writing rules with a hook or filter?
The titles don’t look good either, and they’re defined for taxonomies.
This is not an issue with sitemaps, as the plugin does not currently include sitemap functionality, it is still in development.
The issue you’re facing is that WordPress gets confused when the same slug (e.g., localization) is used for different purposes, such as an attribute, taxonomy, or filter query. This can lead to problems like 404 errors (which you’ve experienced), incorrect page loads, or redirection to the wrong page, for example, being taken to an attribute archive instead of a filtered shop page.
The filter URL prefix should not be the same as the slugs for attributes, taxonomies, pages, and any other slugs on the site. The filter slugs should be unique, so if there is already a page, attribute, or anything else on the site with the slug localization, it should not be used for filter URLs.
You can use this hook – https://filtereverything.pro/resources/hooks/#terms-before-display-hook to rename some of your categories to another names if they do not fit.
Best Regards,
Victor
But if I disable the filter plugin, it doesn’t cause any problems and the sitemaps can be loaded. So it’s the filter plugin that’s modifying the writing rules. you can check it yourself.
https://goupeducation.com/localizacion-sitemap.xmlVictor hablas español?
Victor, I’ve managed to understand how the plugin works and I’ve disabled the parse_request for the taxonomic sitemaps that were causing the problems.
// excluye las reglas del plugin de filtros para los sitemaps de taxonomias
add_action(‘parse_request’, function($wp) { // Solo actuar si contiene ‘sitemap’ en la URL if (strpos($_SERVER[‘REQUEST_URI’], ‘sitemap’) !== false) { // Obtener el nombre base de la URL solicitada $request_uri = trim(parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH), ’/’); }, 1);
// Coincide con el patrón {taxo}-sitemap.xml
if (preg_match('/^([a-z0-9_-]+)-sitemap\.xml$/', $request_uri, $matches)) {
$taxo = $matches[1];
}
// Verifica que sea una taxonomía registrada
if (taxonomy_exists($taxo)) {
$wp->query_vars = [
'sitemap' => $taxo,
'sitemap-subtype' => $taxo,
];
$wp->request = $request_uri;
$wp->matched_rule = '([a-z0-9-]+)-sitemap\.xml$';
$wp->matched_query = 'sitemap=$matches[1]';
}
}
Now I have another problem, the H1 defined in the pattern is not painted well.
Can you help me please?
Hi informaticamediaadgo
We are not sure what you mean by the H1 not painted well. But currently when you are choosing filtering you get redirected to the actual archive pages since you are using the same prefix as your archive page slugs.
Best Regards,
Victor
SEO rules don’t apply to h1
Example
Courses in {location} {course-type} – Goupeducation
The rule doesn’t apply to content in h1s.
https://goupeducation.com/courses/location-barcelona/course-type-aesthetics-and-beauty/The h1 should be
Cursos en Barcelona de Aesthetics and beauty
They don’t work because when you select a filter term from “localizations,” you’re no longer on a filtered page (which is a courses page), you’re on a physical “location-barcelona” category page. This is exactly what we’ve been explaining: using the same slugs can be problematic and may lead to various issues and conflicts and 404 errors across the pages because of how WordPress is working.
If the SEO manager insists on using the same slugs for archive pages and for filter prefixes, despite knowing this can lead to conflicts and issues, they can experiment and rewrite the core WordPress functionality to match their specific requirements. That’s the only workaround available to make it behave as they want.
Best Regards,
Victor
Would it be possible to use filters with another prefix without using an underscore at the end? It doesn’t want underscores: (
fe_tipo-de-curso
by
tipo-de-curso-fe
??
Thank you for your patience Victor : )
Yes, you can use dash symbols for the prefixes like: term-something-something.
Just make sure that the first part, such as: “term” or any other name that you are going to use, doesn’t conflict with existing slugs. For example, archive pages might use slugs like term, and term-cars could lead to a physical taxonomy page. This can cause conflicts between archive and filtered pages, as they would essentially share the same URL structure.
Aside from that, you’re free to use the format however you’d like. The reason why we have added fe_ is because we know for a fact this will be a unique value that does not exist on the site.
Best Regards,
Victor
Another thing, Victor. I have another taxonomy for the filters, “Modality,” whose terms are in-person and online. If I select “online,” I need to hide the location filter. Or if I select an option from the “Location” taxonomy, I would need to hide the presence option. How would that be done?
Hi informaticamediaadgo
When you choose an exact filter term, and there are zero filter terms in the filter that you need to hide, then you can go to the Filter Set > below “And what to filter,” there will be options like “Hide empty filter terms > set to always hide” and another option “Hide empty filters > check the checkbox to hide them.”
But there are no options to hide exact filters by choosing the exact filter term in a certain filter.
Best Regards,
Victor
I’ve seen the empty terms option, but my problem is that I need to hide a term from a group when a term from another filter group is selected. According to the documentation, there are pre-filters and post-filters hooks. If I use it by modifying the filter object, could I solve this problem?
My problem, as I mentioned, is that when I select a city filter, the “in-person” option from the mode filter group shouldn’t be displayed. And conversely, if I select the online mode filter, the city filter group shouldn’t be visible.
I’m not sure if I explained myself correctly 
Thanks in advance.
Hi informaticamediaadgo
Could you please rewrite the request using abstract filter names to make it easier to understand?
For example:
We have two filters — filter-1 and filter-2. If a specific term is selected in filter-1, filter-2 should be hidden, and vice versa — selecting certain terms in filter-2 should hide filter-1.
Best Regards,
Victor
Case 1:
If filter {Ciudad} any term selected, hide term “online” from filter {Modalidad} Il filter {Modalidad} term “online” selected, hide All filters {Ciudad}
The {Ciudad} filter is not compatible with the “online” term of the {Modalidad} filter.
This is only achievable by the custom coding, here is a list of functions that can be helpful (specifically selected filter terms) – https://filtereverything.pro/resources/functions/
And here is the list of hooks like “wpc_terms_before_display” – https://filtereverything.pro/resources/hooks/ that can help to remove not needed filter terms.
Best Regards,
Victor
Hi,
The active filters is showing in two lines. There most be a bugg or something that I cant find it in the plugin. Can you please check this link: https://nrgel.se/produkter/laddboxar/tillverkare-amina-or-charge-amps-or-ctek-or-garo-or-zaptec/
Hi zaynwebagency
Thank you for choosing Filter Everything PRO.
This is what we see when following the link – https://prnt.sc/3tA_D8EPGL5b It appears there may be a bug with the link or a page, as it’s not displaying any filters on that page. Can you please fix it so we can check the page with the filters?
Best Regards,
Victor
Hi 19sanre19
Thank you for choosing Filter Everything PRO.
It is important to keep in mind that the License key and CodeCanyon purchase code are two different things.
Please use incognito mode in your browser!!!
In order to set the License key for the Filter Everything PRO plugin, simply head to Filters -> Settings -> License and click the “Get your License Key” button.
It will take you to a new page where you have to log in with your Envato credentials (with an account where you have purchased the plugin) and obtain your License key.
Best Regards,
Victor
Hello, I’m having a problem with the sitemaps and rewrite rules in the filter module.
https://goupeducation.com/sitemap_index.xmlFor taxonomies it clashes.
https://goupeducation.com/localizacion-sitemap.xmlError 404
If I disable the filter module the problem disappears
How can I solve it? I need the structure of the sitemaps to be this one and not another, and the URL structure of the taxo to be this one and not another.
Is there a way to exclude sitemaps from the plugin’s writing rules?
Another solution?
: )
Hi informaticamediaadgo
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
access credentials sent
access credentials sent
Done! The issue is that you used the same slugs for filter prefixes as already created for other pages on your site. This is causing the conflict, they should be unique.
Best Regards,
Victor
Hi,
I purchased this plugin September 2024.
I’m trying to make a change to the settings but its saying my license key is invalid.
Any help would be appreciated. Thanks
Hi killarneyplastics
It is important to keep in mind that the License key and CodeCanyon purchase code are two different things.
Please use incognito mode in your browser!!!
In order to set the License key for the Filter Everything PRO plugin, simply head to Filters -> Settings -> License and click the “Get your License Key” button.
It will take you to a new page where you have to log in with your Envato credentials (with an account where you have purchased the plugin) and obtain your License key.
Best Regards,
Victor
Hi. I purchased your “Filter Everything Pro” plugin today and installed it at my development site. I am unable to get it to display filters in a column that is positioned to the left of the product display on my Shop page. Instead of displaying the filter I configured, it displays the message “There are no filters in the Filter Set yet. Please add them to the Filter Set related to this page.” So I am apparently either doing something wrong in how I configured the filter, or my WordPress environment is incompatible with your plugin. Below is my environment:
I am using the Divi theme page builder. My Shop page is at https://endfatiguewp.com/shop/. I am implementing the storefront using the WooCommerce short code “[products paginate=”true” filter-id=”801880”].” I am also using the Filter Everything short code “[fe_widget].” Can you tell me what I am doing wrong?
Thank you, Rich
Hi Rich
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
Hi Rich
All done, everything is working now, please check it.
Also, for the security of your site, please avoid sharing your credentials in the comments section. Share them only via private message, as indicated in the instructions.
Best Regards,
Victor
Hi Victor. Thank you very much for resolving my problem. I’m sure that when I look under the hood I’ll now be able to revise the filter set to just how I want it. Have a great weekend!
Regards.
Rich
Hi Rich
If something is confusing or you get stuck at any step, let us know.
Best Regards,
Victor
I’ve created a filter for the promotion category in two languages. The first filter (French) https://prnt.sc/BONIByQ5-mcx works fine, but it seems the filter translation isn’t working due to an error in the “And what to filter?” option where “Select-query” is displayed. https://prnt.sc/GHv5T44J7C7n How can I fix this?
Hi jean280
Can you please send us the access and the link to that page where it is not appearing? All via PM – https://codecanyon.net/user/fe_support
Best Regards,
Victor
Hi
On the plugin the pro version changes the URL from example ?c=green to /c-green/ which messes up the code im using to make the main image change per colour filter selected is there a way of disabling the pretty permalinks
Hi greenpoint_computer_services
Thank you for choosing Filter Everything PRO.
Just place this code either in a code snippet plugin or in the functions.php file of your current theme:define( 'FLRT_PERMALINKS_ENABLED', false );
Then go to the filter set and hit the update button.
Best Regards,
Victor
Thanks for the help.
Sadly that is not good UX, that you have to click the button and not just enter on the keyboard.
Guess I need to look for another plugin.
We are sorry to hear that.
If the default plugin functionality does not fit your requirements, you can add a custom input field. That will redirect you to the required page with the added search data in the URL when you enter the text and hit the enter button.
Something like this shortcode example [custom_search_888]:
function custom_search_shortcode() {
ob_start();
?>
<form action="https://rottestop.the-pack.dev/find-produkt/" method="get">
<input type="text" name="srch" placeholder="Search products..." style="padding: 10px; width: 200px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px;" onkeypress="if(event.key === 'Enter') this.form.submit();">
</form>
<?php
return ob_get_clean();
}
add_shortcode('custom_search_888', 'custom_search_shortcode');
Best Regards,
Victor
Login details mailed
All done, you can check it now on the home page. Additionally, you might want to add some left padding to ensure the magnifying glass icon doesn’t overlap with the text input (see screenshot: https://prnt.sc/8vnfBB83hyNZ ).
The redirection filter only works with the “Apply Button” mode. Without it, it is not working.
Best Regards,
Victor
UPDATE:
I dont have/see the: In the Alternative Direction setting, select Common WordPress Page + Home Page.
Frontpage: (the serachbar) + Shoppage: /find-produkt/
Hi the-pack
Can you please send the credentials to the wp-admin dashboard following this document so we can check it?
Also, please send us the links to both pages:
1) The page you’re referring to is the home page, where you want the search filter to appear.
2) The target page, where the user should be redirected after clicking the Apply button.
This will help us set up a working example for you.
Additionally, please continue replying within the same comment thread. Creating new threads for the same issue makes it difficult to track the full context and history, which in turn makes it harder for us to provide accurate and timely support.
Best Regards,
Victor
UPDATE:
I dont have/see the: In the Alternative Direction setting, select Common WordPress Page + Home Page.
Let me try again.
I have made a filter, that shows up on the shop page. It has a search, and som normal attribute filter.
All works well. Now I just need a search-bar on my home page, So if you search in it it will work like you searched on the shop-page.
So all the filters on the shop page will not be on the home page. Only the searchbar.
Your guide did not help me.
For the filter for the shop page the following is selected:
Where to filter?: Common Wordpress page + Shop page And what to filter: Product query. Main Query.
What should be the settings for a searchbar only. And do I place it with a shortcode and the post no?
Hi the-pack
You need to create a separate filter set that contains only a search filter. Assign this filter set to Common WordPress Pages + Shop Page. Then, enable the “Apply Button” mode.
In the Alternative Direction setting, select Common WordPress Page + Home Page.
With this setup, when a user enters a search term on the home page and clicks the Apply button, they will be redirected to the shop page with the search term applied.
You can use a shortcode or a widget on a home page to display the redirection filter set.
Best Regards,
Victor
Hi, Is the plugin “Filter Everything — Product Filter & WordPress Filter” compatible with elementor product loop grid?
Regards
Hi kvinb6
Thank you for your interest in the Filter Everything plugin.
Yes, absolutely. Here you can check a demo page with the Elementor – https://demo.filtereverything.pro/elementor/
Best Regards,
Victor
Just bought the PRO version
I would like just the searchbar to be placed on my frontpage, and when searching it will go to the shoppage and show the result.
Is that possible?
I get this error when using a shortcode.
No one Filter Set is related to this page. You can configure it in the Filter Set -> “Where to filter?” field.
So can you walk me through what to put in?
I trie to put the apply filtering to PAge and then choose the frontpage.
But then I get No WP Queries matched
Hi the-pack
Thank you for choosing Filter Everything PRO.
Please check the instructions on this page – https://filtereverything.pro/resources/typical-problems/#redirection_filter_instruction
If you are stuck on any step let us know.
Best Regards,
Victor
Good morning, since we installed your filtering plugin on our WooCommerce store ([https://greenterest.it](https://greenterest.it)), we’ve been experiencing a serious issue with Googlebot requests overloading the server.
We are seeing continuous, high-frequency requests from Googlebot that include complex query strings with multiple non-cacheable parameters. For example:
``` [28/May/2025:12:17:05 +0200] “POST /?wc-ajax=get_refreshed_fragments HTTP/1.1” 200 837 “https://greenterest.it/tappeti-erbosi/concime-prati/?et_per_page=12&filtro-offerta=yes&filtro-categorie=biostimolanti;biostimolanti-liquidi;concime-antimuschio;concime-antistress-prato;concime-organico;concime-prati;concime-prato-autunnale;concime-prato-primavera;concime-semina-prato;concime-starter-prati;concime-universale;fungicida-prato;liquidi&filtro-brand=bottos” “Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.7103.92 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" ```
This type of traffic is not only unnecessary for SEO, but it’s also saturating our CPU resources and heavily affecting site performance.
Can you please advise how we can mitigate this? Are there any recommended settings or adjustments to prevent the plugin from generating such URLs for bots, or to block them efficiently?
We would appreciate an urgent solution or guidance, as this situation is becoming critical.
Best regards
Hi Officina2-0
To resolve this, you can use firewall settings and update your robots.txt file accordingly. In the robots.txt file, you can add rules to disallow the crawling of specific query parameters used by the plugin. For example:
User-agent: * Disallow: /*?filtro-offerta=* Disallow: /*?filtro-categorie=* Disallow: /*?filtro-brand=*
And other rules to instruct Googlebot which URLs to avoid crawling.
The ”?wc-ajax” is not from our plugin this is from some other plugin.
Best Regards,
Victor
Hi
I have set up in Divi Builder 2 filter sets from Filter Everything on two separate pages. One that is English and one that is Norwegian. Now I have not used a translation program, but created the pages manually and linked as we want. Everything has gone well except when I press the reset button in the filter or down in chips. Then many pages that I have created appear that are both Norwegian and English, plus pages that are not connected to the filter.
The page is set up in Divi Builder via the blog function. Now there are pages that it filters not posts or products.
I first tried to take away the reset button, but there is a reset button down in chips too. We want to use chips. It would have been nice to have a reset button too. Can you help me?
Hi marifkarlsen
Please send the link to the exact page with this issue, and instructions on how we can recreate it, so we can check it and test it.
Best Regards,
Victor
Do you need access to wordpress?
The first thing you need to do is display all of the products on those pages, rather than hiding them and having them appear only when filtering. This way, you can see what type of posts are displayed there by default, and only then test the filtering.
So far, it looks like all the products are displayed on the pages, they’re just not visible due to the hiding functionality. And when resetting the filters they are just all visible.
Best Regards,
Victor
But is not products, it is pages. And all I want is not to have all the pages appear. Because som pages are in Norwegian and some in English. So far I working except when I use reset or older entries. Do we have to buy a language program or is there a solution we can use in the filter search? Like not use reset or older entries?
We changed your CSS to the display block that includes all of your pages: https://prnt.sc/xi2w7RzSB08j and it shows all your pages in all languages. Just simply hidden by CSS.
If you don’t want posts/pages in other languages to appear there, you need to remove them from the query or use another approach. This is not related to the plugin’s functionality, it’s related to your page template, WP_Query template, or page builder templates, depending on which approach you are using.
Regarding multilingual plugins, we’re not sure what your end goal is. If you can provide more details about what you’re trying to achieve, we’ll be able to give you more specific and helpful information.
For example, if you want some type of multilanguage website in multiple languages then yes, you need a plugin like WPML to handle it all.
Best Regards,
Victor
What we want is to have is two pages that have a filter search on them. Norwegian: https://usnlearninglibrary.no/sok-og-finn/ English: https://usnlearninglibrary.no/search-and-find/
What that If you press reset or one of the chips, only English or Norwegian pages should be displayed. I have created all pages with a slug that ends with -en (English) or -no (Norwegian)
CPT UI Norwegian pages: Ressurstype Tema Språk
English pages Resource type Topic Language
Problem: I wanted to have reset buttons, but removed them so that English pages would not show on the Norwegian page. But now I see that if I press one of the chips. All the pages get visible, but not all the tekst is showing?
Solution: If the solution is to have all pages displayed, can it only be Norwegian or English?
ANOTHER QUESTION. Is it possible to have a separate regular search field at the top of the page on all pages, where I can search only specific pages?
Do you need access to my wordpress?
Hi marifkarlsen
If this is all that you did: “I have created all pages with a slug that ends with -en (English) or -no (Norwegian)” without an actual multilingual plugin for translation like WPML, just manually adding “en” won’t affect anything.
The issue in your case is that both pages:
https://usnlearninglibrary.no/sok-og-finn/ https://usnlearninglibrary.no/search-and-find/Displaying exactly the same pages. The filter is filtering what is displayed on those pages. So if page-1 has 10 pages displayed, and page-2 has the same 10 pages displayed the filters will be the same and will display the same pages. So if you want to simulate translation on two different pages, then just display on one page only en-pages, and on another only no-pages.
The search filter is the same as any other filter, so it will work only on the applied page in the “Where to filter” It will not work like a global search on the site.
Best Regards,
Victor
-en and -no is only to have an overview of what pages is Norwegian and English for us self.
This pages are two pages with two different filter. On page with filter in Norwegian and on in English. The filter work to search in only Norwegian and English because of the Tax in CPT UI. What I am trying to do is, when is press reset og a chip not to have all pages to apper.
I remove reset button, even that it would have been great to have. But now if I press on of the chips, more than the page are appearing?? There are first result, but then there are a list of other pages that apper under?
So basically, you just want to hide all the pages again, restoring them to their initial state when the page first loads?
If this is the case, please check this page: https://filtereverything.pro/resources/ajax-instructions-only/#ajax_related_problems
Best Regards,
Victor
Hi Victor. Thanks for being so patient with me.
The problem is that sometimes all pages come up when I press reset button. That’s why I removed it.
Then I discovered that if I pressed reset in Chips, I had the same problem, all pages came up. Both Norwegian and English. That’s why I removed this button too. Then a new problem came, and that was when I pressed the first chip button, all pages came up. So I think the first button in chips became a reset button. I have inserted both reset button again.
What I really hope to achieve is to be able to press reset and no pages will show. I was a little confused by the link you sent, can you help me?
Hi marifkarlsen
To explain what’s going on: you have a JS code that applies display: none to the page container when filtering or resetting filters, that JS code does not fire again to apply the display: none when needed.
You’ll need to re-trigger that JS logic so it runs again when no filters are selected.
You can refer to this page for functions that help detect whether the page is filtered: http://filtereverything.pro/resources/functions/
At the bottom of the article, there’s a function that returns a boolean value indicating whether the page is filtered or not. However, the custom JS code to handle this will need to be written on your own.
Best Regards,
Victor
What I don’t understand. Filter works outside reset, which I’m trying to figure out, but haven’t solved get.
My question now: After a search, the chips appears. I press the chip first chip button (button next to “reset all”). Then all pages come up? Why does not this button search the topic on the button?
Hope we can solve this and problem with reset all before next week, when this website is on a deadline.
What I don’t understand. Filter works outside reset, which I’m trying to figure out, but haven’t solved yet.
We have a couple of questions:
1) Do you know why pages are hidden on those pages before filtering?
2) Did you add that “hiding pages” functionality on your own or via any settings?
3) Do you know why during filtering pages are displayed on the page?
4) Did you add any specific functionality to check if the page is filtered then pages should be displayed, and if not filtered then it should hide pages?
5) Do you have no idea why pages are appearing during filtering or you assume it’s a feature of our plugin to make them appear?
Best Regards,
Victor
Hi I got it to work. Thank you for all your help.
You did a great job!
If you want, you can share your solution with others, so if there are other users with the same custom functionality, to hide posts by default and display them only during filtering, then hide them again when no filtering is applied, it could be helpful for them.
Best Regards,
Victor
Hei Victor.
I have a new problem to solve, but first this is how I solved what I had as a problem with at first
FIRST PROBLEM AND SOLUTION NR. 1: I did not want any pages to show until I use the filter. I type this code in Divi Theme Options (CSS):
.fe-cont-for-pages-ajax { display: none; }
.fe-cont-for-pages-ajax.filtered { display: block; }
FIRST PROBLEM AND SOLUTION NR. 2: I had problems with that all the pages showed when I press reset buttons. I wanted the search/result container to be blank when I press reset. This is how I solved it. I type this code in Divi – integration:
<script> document.addEventListener(‘click’, function (e) { const isResetAll = e.target.closest(’.wpc-chip-reset-all’); const isResetButton = e.target.closest(’.wpc-filters-reset-button’); ... if (isResetAll || isResetButton) { shouldForceHide = true; } }); </script>
NEW PROBLEM NR 1: I have problem with the chips button don’t respond like they should
NEW PROBLEM NR 2: The chips don’t show on mobil, it is on in widget.
This is JS: <script> document.addEventListener(‘DOMContentLoaded’, function () { const container = document.querySelector(’.fe-cont-for-pages-ajax’); if (!container) return; }); </script>
let shouldForceHide = true;
function updateVisibility() {
const hasResults = container.querySelector('.et_pb_post');
}
if (shouldForceHide) {
container.classList.remove('filtered');
} else if (hasResults) {
container.classList.add('filtered');
} else {
container.classList.remove('filtered');
}
shouldForceHide = false;
// Korrigert click-handler
document.addEventListener('click', function (e) {
const isResetAll = e.target.closest('.wpc-chip-reset-all');
const isResetButton = e.target.closest('.wpc-filters-reset-button');
const isChip = e.target.closest('.wpc-filter-chip');
});
if (isResetAll || isResetButton) {
shouldForceHide = true;
} else if (isChip) {
shouldForceHide = false;
}
document.addEventListener('flrt:updated', function () {
setTimeout(updateVisibility, 50);
});
const observer = new MutationObserver(updateVisibility);
observer.observe(container, { childList: true, subtree: true });
updateVisibility();
What am I doing wrong? I know you send me links on Ajax an I try to put code in PHP plug-in “snipper”. like this:
add_filter(‘wpc_theme_dependencies’, function($deps){ $deps[‘divi’] = [ ‘posts_container’ => ’.fe-cont-for-pages-ajax’, ‘chips_hook’ => [‘after_flrt_posts’] ]; return $deps; });
Please help me
Could you share a quick video showing the issue, along with the link to the page on your site where we can check it? It’s a bit confusing to understand what’s wrong without a visual representation.
Best Regards,
Victor
Yes of course I can, where do I send the video? Do you need access to my Wordpress to?
I put some pages in privat, so other people can’t see the website before it is ready, but I can publish it so you can see the problems.
Hi marifkarlsen
You can send all of the private information via email here: filtereverythingsprt@gmail.com
If it is required, you can send the credentials to the wp-admin dashboard following this document so we can check it.
Best Regards,
Victor
I have sendt you access and a e-mail called “Wordpress – USN Learning Library”
Hi marifkarlsen
So this is basically related to the same custom functionality issue.
Show/hide product on filtering: As we mentioned earlier, this functionality is not related to our plugin. It is custom functionality that should be handled on the client side. The issue you’re currently facing is that your solution is only partially working, and after the page is filtered and displaying posts, refreshing the page hides the products, even though the filters are still active.
This happens because you are not using the following function, and the same with chips refreshing:
/** * @return bool true if it is a filtered page and false if not */ flrt_is_filter_request();
You need to check whether the page is filtered or not, and only then apply the required styles. If you are struggling to implement the working solution for hiding/displaying posts during filtering, please contact your site developer for assistance. All custom code and functionality that is not included in the plugin by default falls outside the scope of our support policy.
Best Regards,
Victor
Hi Victor,
The filter works, but not with the chips. Am I understanding correctly that for the chips to work, I need to display all pages and remove the JavaScript that clears the container? That’s probably where the issue lies.
The reason I’ve cleared the container (removed some pages) is because both the Norwegian and English pages are showing together. I set up the language versions manually without using WPML, to keep costs down.
If I install WPML and press “reset,” will that automatically show only Norwegian pages on the Norwegian version and only English pages on the English version?
I’ll try deleting and re-adding the chips, but I expect the same issue to happen again.
Hi marifkarlsen
What you can do without WPML is create two custom page templates: one using WP_Query to display only the required pages in the NR language, and another using WP_Query to display only pages in the EN language. Then apply those templates to the corresponding pages. The filter will work correctly on those pages since only one language’s pages will be displayed. Hiding pages with CSS will not change anything.
With WPML, you need to translate each filtered page, the pages where they are displayed, and related content as well. We recommend looking into some basic documentation or tutorials on WPML to understand how it works, as this will help you find the right approach more easily.
Best Regards,
Victor