Search code examples
phptumblr

Displaying current year in tumblr theme


I want to place a copyright statement in the footer of my Tumblr theme something like "Acme Co © 2013" but i dont want to have to go in a update the year each year.

Normally with php this could be done using date() which would be fine, but although Tumblr is built on php i dont think end users can use it on the site, although there is a shorthand scripting language which i guess is compiled into php.

Any idea how i could do this ? I was thinking possibly with js but search bots don't have js so what would they see ?


Solution

  • There is a theme variable, that will display the span of years a tumblelog has existed - {CopyrightYears}

    Returns: 20XX-2013

    Reference: http://www.tumblr.com/docs/en/custom_themes