I’m working on a blog and I’d like a site news bar to appear at the top of it, but I want it only to appear if theres news. I’ve the weblog for it to only display one entry, but I’m not sure how cause the div and entry to appear only if there’s a current entry. Naturally I’d either set an entry to expire or expire it manually.
The code I have is this:
{exp:weblog:entries weblog="sitenews" orderby="date" status="open" sort="desc" limit="1" show_expired="no"
show_future_entries="no" disable="categories|custom_fields|member_data|pagination|trackbacks"}
{if count =="1"}
<div id=“header”>
<div id=“sitenewsbar”>
Site News {current_time format="%M. %j%S, %Y:"}
{body}
{/exp:weblog:entries}
</div>
{/if}
But all that does is show Site News {body}
Any suggestions on how to get this done?