Thanks for the answer, unfortunately it didn’t work.
I have got the following code to work:
(function($) {
$(document).on('facetwp-loaded', function() {
$('.masonry-container').masonry('reload');
});
})(jQuery);
But I need it to wait until the images have loaded otherwise the posts lie on top of each other. I think the following is working:
(function($) {
$(document).on('facetwp-loaded', function() {
var $grid = $('.grid').imagesLoaded( function() {
$('.masonry-container').masonry('reload');
});
});
})(jQuery);
See http://nhssf.scipdev.org/blog/
Regards
Mark
What do you think? The code may come in useful for other people.