Remove Tab in Tab Element is no content

Hi

I have a tab element with multiple tabs that have a posts element in each tab. It’s showing monthly offers with each tab being a different type of offer. Not every category will have offers in it each month.

I want to hide the tabs that have no offers in them. Is there a way to dynamically hide a tab if the posts element returns no posts?

Thanks

Hi @sarammog,

Thanks for reaching out.
We are not sure about the structure you are using in the page, but if you are using the Looper, you can add the condition {{dc:looper:count}} is greater than 0 to show the tab. Please remember that the Tab you are trying to hide should come inside the Looper Provider. If that does not help, please provide login credentials for your site in a secure note, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– Specific Page where you have used the tab.

To create a secure note, click the key icon underneath any of your posts.

Thanks