I created the following page using a WordPress plugin (FacetWP) in combination with ACF: https://surfawhile.com/surf-taal-new/. I created the galleries using ACF Pro and Flexslider in order to pull images into a gallery using ACF.
The problem is that these galleries work as long as I don’t touch the filters. However, when clicking on one of the filters the gallery disappears. I have no clue what causes the issue. This is the code that I use: