Looking for support? You can access the support system via your account.
- This topic has 6 replies, 2 voices, and was last updated 4 years, 5 months ago by .
You must be logged in to reply to this topic.
Looking for support? You can access the support system via your account.
Forums › Forums › Search & Filter Pro › Featured Image gone when I select 2 categories
Tagged: featured image missing
I have my filter working with checkboxes of the categories on the side on the blog page and when I select 1 category it filters just fine, but when I select a second category all of the featured images are gone and are just big blank spaces with the title and the meta description shows all the visual composer code instead of the meta description.
That sounds like a problem with either lazyload or Masonry (Isotope).
Are you able to send me a live link/URL to your search page so I can take a look?
Yes here is the link: https://acronisscsstg.wpengine.com/blog/
The solution might necessitate some experimentation. It is necessary to initialize Page Builders shortcodes again after an Ajax call (so, if you turned off Ajax in our form, the issue is likely to go away).
Try adding this script to the page (you can add it to the start of the results.php file, outside of a php block:
<script>(function ( $ ) {
"use strict";
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
console.log("ajax complete");
$(.search-filter-results).vc_js();
});
}(jQuery));</script>
I am unsure if this will work. If it does not, I may need to ask our developer to take a look.
Thinking about this some more, that script may need to be on the page, not in our results.php file.
I will explain what the issue is. You are using WPBakery Page Builder to create the content for the pages/posts that you are searching. In turn, that plugin uses their own shortcodes to format and structure the content you make. If you look at the search results when the issue happens, you can see them.
The issue arises because WPBakery decided (for reasons of speed) not to use normal WordPress shortcodes to do this. Instead, it uses JavaScript to process those shortcodes. The WPBakery support forums have discussed this issue (that you face) for many years, but the plugin authors have not provided a definitive answer as to how to get around this. That they have not suggests that it is not easy to do.
I think, for now, the only solution is to disable Ajax in the form.
You must be logged in to reply to this topic.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy