Make visible if Loop carrousel has posts (any content)
-
I am a big fan of the Dynamic Visibility plugin by ooo, but I cannot seem to get it to show / hide content based on whether a loop carrousel has content (i.e. posts).
My post template for “Chapters” (custom post type) has a container with a loop carrousel with video posts. The video posts (another custom post type) are selected depending on whether they share the same category as the main “chapter” post being displayed. I use Advanced Queries Options and “Dynamically Related Posts” to do this.
I would like to use Dynamic Visibility plugin to display a message such as “No videos available” in the case that the loop carrousel has no posts, but can’t get this to work. I have the same problem with post widgets. I am looking for a simple way to test if these elements “has content”.
Can anyone help?
Thanks,
Miguel
- You must be logged in to reply to this topic.