Show/hide parent if child has content

Hello,

Is it possible to show/hide the parent if child has content with CMS elements? I am building a related posts section and pulling blog posts with the same category as the main post. How can I hide the wrapper if there are not related posts?

Thanks!


Here is my public share link: LINK
(how to access public share link)

Hey there!

You absolutely can. What you’ll want to do is use the Filter panel in the settings panel to only show content that “contains current ____” (your CMS collection).

Thanks!

Which condition should I use: