How can I hide a block if there are no posts in this category?

Hi,
I display dynamic entries on the page separately dividing them into categories of 10 pieces, in each block I write an indentation from each block, if there are no entries in the block, then a void and indentation appear, how can I logically hide the block if there are no entries in this category? I have already come up with some logic, I tried to hide it using the ACF fields on, off. Can you tell me?

Use {query_results_count

1 Like