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.

custom date field not parsing

January 25, 2011 11:20am

Subscribe [2]
  • #1 / Jan 25, 2011 11:20am

    julie p

    282 posts

    Hi all. I have a custom field called “edition-date” and it isn’t parsing in my template. Here’s my code (yep - this is the only code in the template)

    {exp:weblog:entries weblog="editions" orderby="edition-date" sort="desc" limit="1"disable="categories|member_data|trackbacks" paginate="bottom"}
    {title} : {edition-date format="%D, %F %d, %Y - %g:%i:%s" }
    {/exp:weblog:entries}

    The {title} renders just fine, but the edition-date does not. It spits out: {edition-date format="%D, %F %d, %Y - %g:%i:%s" }. Interestingly, it does order by the same field in the tag…

    Thanks!

  • #2 / Jan 25, 2011 3:16pm

    julie p

    282 posts

    got it sorted out. code should be this:

    {exp:weblog:entries weblog="editions" orderby="edition-date" sort="desc" limit="1"disable="categories|member_data|trackbacks" paginate="bottom"}
    {title} : {edition-date format="%D, %F %d, %Y - %g:%i:%s"}
    {/exp:weblog:entries}

    Note no space in the {edition-date} tag

    fun times 😊

  • #3 / Jan 26, 2011 4:03am

    John Henry Donovan

    12339 posts

    Glad you are up and running. Feel free to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases