2015-04-16, 07:06:26
(2015-04-14, 20:21:49)davetest Wrote: I would like to use this plugin to put announcements into my template in a way where the html div etc that I surrounds the slogan does not display if the slogan is empty. But I'll still want to keep the particular slogan existing in the backend ready for an announcement and be able to just save it as an empty field when there isn't an announcement. So I'm not looking to detect if a slogan exists (though it would be nice to know how to do that too) I'm looking to find what php code would only display the whole div (etc) containing the slogan if it has content (or maybe contains more than x characters?).
Any ideas please?
What I'm trying to do is use in my template:
PHP Code:
<div><?php get_slogan('Announcement');?></div>
Can any php expert point me in the right direction?