ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Entry dates have disappeared

July 10, 2007 8:24am

Subscribe [0]
  • #1 / Jul 10, 2007 8:24am

    Moonfish

    7 posts

    Bit wierd, but some of my dates are showing and some are not, although all entries have the date set. Was working fine until I made some changes last night - but these changes were on a different template! Here’s my code…

    {exp:weblog:entries weblog="default_site" orderby="date" sort="desc" limit="5" disable="member_data|trackbacks"}
    
        <div class="entry">
        <h1>{title}</h1>
        <div id="entry_date">{date_heading}{entry_date format=' %l, %F %d %Y '}{/date_heading}</div>
        {if allow_comments}
        <div id="entry_comments"><a href="http://{url_title_path=">{if comment_total == 0}(0 comments have been made){/if}{if comment_total == 1}(1 comment has been made){/if}{if comment_total > 1}({comment_total} comments have been made){/if}</a></div>
        {/if}
        /images/hr-entry.gif
        {summary}
        {if extended}
        <a href="http://{title_permalink=index/full}">Continue reading</a>
        {/if}
        </div>
    
        {paginate}
        Page {current_page} of {total_pages} pages {pagination_links}
        {/paginate}
    
        {/exp:weblog:entries}
  • #2 / Jul 10, 2007 10:10am

    Robin Sowell

    13255 posts

    You’re using the date heading variable pair- and that defaults to a ‘daily’ setting.  Which means- whatever is between that variable pair (your entry date) will only show up once fore each ‘day’ grouping.  So if you have three entries on monday?  Then it will show above the first monday entry and then not show again until you have an entry from a different day.

    If you always want the entry date to show for each entry?  Just remove that variable pair a la:

    <div id="entry_date">{date_heading}{entry_date format=' %l, %F %d %Y '}{/date_heading}</div>
    change to:
    <div id="entry_date">{entry_date format=' %l, %F %d %Y '}</div>

    That look like what’s happening on the site?

  • #3 / Jul 10, 2007 10:19am

    Moonfish

    7 posts

    Excellent, that’s fixed thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases