Hello all. I have a site that has 3 weblogs: inner-page, news, and events. Each weblog (through Gypsy) has a drop down field to denote if a new entry should be posted on the homepage. The code for the news section is:
{exp:weblog:entries weblog="inner-pages|news|events" limit="3"
disable="categories|member_data|pagination|trackbacks|category_fields" dynamic="off" orderby="date"}
<li>
{if home-news-blurb !="" && in-whats-new != "No"}
<a href="http://{page_uri}"><span>{title}</span>__ <strong>{home-news-blurb}</strong>__ _ {if:elseif lead-in !="" && in-whats-new != "No"}_ <a href="{page_uri}"><span>{title}</span>__ <strong>{lead-in}</strong>___ {if:elseif event-lead-in !="" && in-whats-new != "No"}_ <a href="{page_uri}"><span>{title} _ {if event-date !=""}({event-date format="%F %j, %Y"} - {event-time}){/if}</span>__ <strong>{event-lead-in}</strong>___ {/if}__ <span class="more">More »</span></a></li>
{/exp:weblog:entries}It mostly works as expected but there is one issue that I’m running into. If a new entry is created and the in-whats-new field is set to “no”, the order is pushed down (as expected) but then the first entry appears blank.
To illustrate, prior to a new entry with “no” selected as to whether or not to show on the homepage, the news looks like:
- Item 1 More »
- Item 2 More »
- Item 3 More »
If a new entry is added and the “no” option is selected, you see
- blank More »
- Item 1 More »
- Item 2 More »
Part of me feels like I may be overlooking something obvious but any assistance is greatly appreciated.
Thank you.