On my site I have a headline article that displays first. The headline is defined by a “feature” category and the weblog tag limits this entry to “1” so it only displays the latest entry. However, not every new entry is a “feature” so they could display out of sequence (not by latest date of entry). After the headline I want the next 5 articles to display. The problem I’m running into is the headline article continues to show up in the list. I tried to use a user-defined variable to strip the headline article out but it’s still showing up. Can anyone provide some guidance on what I can do to prevent the article from showing up in this list? My head hurts now.
Here is the code I have in the template:
{exp:weblog:entries weblog="news" orderby="date" category_group="1" category="15" limit="1"}
{if headline_img_up != ""}
<div class="headline">
<div align="center"><a href="http://{title_permalink=">{exp:png4ie}{headline_img_up}{/exp:png4ie}</a> </div>
</div>
{embed="embeds/html_center_tools"}
{assign_variable:weblog_entry_id="entry_id""}
{if:else}
<div class="news_1">
<div class="newsThumbnail"><h6>{exp:png4ie}{sub_headline_img}{/exp:png4ie}</h6><p></div> <br />
<div class="newsHeadline"><a href="http://{title_permalink=">{title}</a></div><br />
<div class="authorCat"><i>{news_date format='%F %d, %Y '} • By <a href="http://{path=MLS/author}{username}">{author}</a> // Category {categories} • <a href="http://{path=MLS/cat_detail}">{category_name}</a>{/categories}</i></div><br />
<div class="newsText">{sub_heading}</div><br />
</div><br />
{/if}<br />
{/exp:weblog:entries}</p>
<p>{exp:weblog:entries weblog="news" orderby="date" sort="desc" limit="5" category_group="1"} <br />
{if entry_id!="weblog_entry_id"} <br />
<div class="news_1"><br />
<div class="newsThumbnail"></p><h6>{exp:png4ie}{sub_headline_img}{/exp:png4ie}</h6><p></div> <br />
<div class="newsHeadline"><a href="http://{title_permalink=">{title}</a></div><br />
<div class="authorCat"><i>{news_date format='%F %d, %Y '} • By <a href="http://{path=MLS/author}{username}">{author}</a> // Category {categories} • <a href="http://{path=MLS/cat_detail}">{category_name}</a>{/categories}</i></div><br />
<div class="newsText">{sub_heading}</div><br />
</div><br />
{/if}<br />
{/exp:weblog:entries}The website this renders on is: MLS Philly 2010