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.

conditional statement for entry_date

March 21, 2013 3:15pm

Subscribe [1]
  • #1 / Mar 21, 2013 3:15pm

    abjoy

    6 posts

    I’m having trouble getting a conditional statement to work to display text. Here’s what I’m trying to use:

    {if entry_date format="%l" == "Thursday"}
          <h1>Hope everyone enjoyed the party yesterday!</h1>
    {/if}

    I want to evaluate whether the entry date is a Thursday and if it is, then I want to display the text above. But when I use the above coding, the page doesn’t even display. Can someone tell me what I’m doing wrong?

    Thanks

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

ExpressionEngine News!

#eecms, #events, #releases