Jump to content
Sign in to follow this  
TourKick (Clifford P)

shortcode for current year, to be used in footer for copyright dates

Recommended Posts

TourKick (Clifford P)

In this section of PageLines Settings (Header and Footer): Site Terms Statement (FootCols) A line in your footer for terms and conditions text or similar Instead of typing this: Copyright 2009-2012. Is there a built-in shortcode to do something like this: Copyright 2009-[current_year] ? If not, I think it would be helpful to build one in. Thank you.

Share this post


Link to post
Share on other sites
catrina
There is a WordPress shortcode for displaying the date and time a post was published, but not displaying a current year. There may be a Javascript you can use. I found this one: [code][/code] I tested it and it worked. Just paste it after [b]Copyright 2009-[/b].

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
TourKick (Clifford P)
thank you. I think PageLines should add a shortcode to make sure JS is properly added (or just use PHP) and also for it to be easy and better to look at.

Share this post


Link to post
Share on other sites
Simon
No need, http://wordpress.org/support/topic/creating-a-year-shortcode?replies=3

Share this post


Link to post
Share on other sites
TourKick (Clifford P)
thanks for the reply, however, I don't see how that's relevant. What should be put in the Site Terms Statement (FootCols) footer text box that displays the current year? P.S. I tried a short code in there and it didn't work, just displayed the text. So I used Post Snippets (PHP code) to use it in a text widget in that area instead.

Share this post


Link to post
Share on other sites
Simon
Well you can add the shortcode from the post i linked in your functions.php file then use it wherever you like.

Share this post


Link to post
Share on other sites
TourKick (Clifford P)
I thought I read it pulls the time of the post though, not the time of the day? Regardless, however a shortcode is created, I put one in that text box area and it didn't work. Have you tried a shortcode in there?

Share this post


Link to post
Share on other sites
Rob
I recommend http://wordpress.org/extend/plugins/dynamic-dates/ and use it throughout my site. It adds the copyright year, and I've used its variables to automate my magazine sub-masthead http://www.epicurus.com/magazine/ (the greyish box below "contents", where this one plugin adds the Volume number, issue, month and year, all with shortcodes. Javascript is good, but if the visitor to a site has it turned off, they'll see nothing.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
TourKick (Clifford P)
good one. thx for 2nd-ing my opinion. ;)

Share this post


Link to post
Share on other sites
TourKick (Clifford P)
The site footer box should just be set to do shortcodes, right?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×