Hi all, I have created an ACF Block that uses a wp_query to display a filterable list of all posts of a specific post type. My issue is that I need to be able to add more than one of these blocks to a page, but when I do, I get a critical error. If I remove the wp_query, the page will load with multiple instances of the block. Anyone have any idea what I am doing wrong? My assumption is that I need to make the wp_query unique to the block instance, but I do not know how. Any help would be greatly appreciated.
The code is pretty large so I will just include my wp_query.