After recent update – the category filter using the Avia builder/ “blog post” block is not displaying a category filter to sort blogs. When trying to change to any other layout i.e masonry the blog posts don’t display properly. link to the blog page referenced is below. Any assistance is greatly appreciated.
Hey rkumar12,
Thank you for using Enfold.
The blog posts element doesn’t have a sorting function by default. You’re probably looking for the Portfolio Grid or the Masonry element. You have to set the Blog Layout > Blog Layout settings to “Use the advance layout builder…” option first.
Best regards,
Ismael
I have set the blog layout to advanced layout builder in the theme settings area. I used to use masonry grid but then something happened where all the pictures would be squished together when displaying blog posts and it did not look right. Then switched to blog posts and now there’s no function to sort. With the masonry element, what can I do to make the blog posts display properly on the first load?
Hi,
Thank you for using Enfold.
Set the masonry element again and then add this script in the functions.php file.
add_action('wp_footer', 'ava_auto_resize');
function ava_auto_resize(){
?>
<script>
(function($){
var int = window.setInterval(function(){
$(window).trigger('resize');
}, 2000);
$(window).load(function () {
setTimeout(function() {
clearInterval(int);
}, 5000);
});
})(jQuery);
</script>
<?php
}
The Blog Posts element doesn’t have a category sorting function by default.
Best regards,
Ismael
It seems to work with the script. Thanks!