Hide container if no published post feed results

  • Solved
  • Posted 1 month ago

In the ‘business’ post type single post template, I have a container with the title ‘Jobs’ and post feed widget. This container has conditional visibility to hide if @post(post-relation-2.id) Is empty

I’ve discovered that if a post has included related ‘Jobs’ posts, however, these posts have expired, the container is still visible (but with empty search results).

Please could you direct me to a dynamic tag that would hide the container if there are no published posts?