I’m working with the new tabs and there’s a couple of things I’d like to be able to do but not sure how to approach them. I’m working with custom fields to populate content into the tabs which is working fine but…
1. I’d like to be able to hide a tab if there is no data in that custom field for that post. So rather than the tab show up but its content be empty on the front end, that particular tab just wouldn’t show up at all for that post.
2. I’d like to be able to make a particular tab active when the page loads dependent on the taxonomy (where I have a tab for the corresponding term) so for example:
If the url was mysite.com/services/conferences/post, then the Conferences tab would be active by default when page loads
But if the url was mysite.com/services/events/post, then the Events tab would be active by default when page loads
Any help on achieving this would be most appreciated 🙂
Thanks.