Current Year and Copyright Shortcodes

Description

IMPORTANT: Support has moved to the ZATZLabs site and is no longer provided on the WordPress.org forums. Please visit the new ZATZLabs Forums. If you need a timely reply from the developer, please open a ticket.

If you need to display the current year, and have it always kept up to date, inserting this plugin’s [y] shortcode almost anywhere on your web site will do just that.

If you need to display an official Copyright notice, inserting this plugin’s [c] shortcode provides the official C with a circle around it (“©”) required legally in many countries to Copyright many forms of intellectual property.

Used on its own, this plugin allows you to place the Copyright symbol and/or the current year in the body of a Page or Post. For other areas of your web site, you will need to install the jonradio Shortcodes Anywhere or Everywhere plugin. Such places as Page Titles, Post Titles, Custom Fields of both Pages and Posts, Site Title, Description and other bloginfo options, Widgets and Widget Titles, which covers most Sidebars, Menus, Headers and even the HTML <title> element that appears in the Title Bar of most browsers.

The [y] shortcode inserts the four digit current year into any Page or Post no matter whether you use the Visual or the HMTL editor tab in Edit Post or Edit Page. The [c] shortcode inserts the © Copyright symbol, using the official HTML coding for a copyright symbol. To address restrictions within older WordPress versions of using two Shortcodes side-by-side, the [cy] shortcode inserts the © Copyright symbol, a blank and the current year.

For example, if you are continually refining an older article that you want to copyright on a WordPress Page, you could put the following at the bottom of the page:
[c] 1997-[y] John Smith
Assuming it is currently the year 2014, that would display as:

© 1997-2014 John Smith

In 2015, it would automatically display as © 1997-2015 John Smith without anyone having to edit the Page.

Adoption Notice
This plugin was recently adopted by David Gewirtz and ongoing support and updates will continue. Feel free to visit David’s Lab Notes for additional details and to sign up for emailed news updates.

Special thanks to Jon ‘jonradio’ Pearkins for creating the plugin and making adoption possible.

Screenshots

  • [c] 1997-[y] John Smith as it was displayed in the year 2012

Installation

This section describes how to install the jonradio Current Year and Copyright Shortcodes plugin and get it working.

  1. Use Add Plugin within the WordPress Admin panel to download and install this jonradio Current Year and Copyright Shortcodes plugin from the WordPress.org plugin repository (preferred method). Or download and unzip this plugin, then upload the /jonradio-current-year-and-copyright-shortcodes/ directory to your WordPress web site’s /wp-content/plugins/ directory.
  2. Activate the jonradio Current Year and Copyright Shortcodes plugin through the Installed Plugins Admin panel in WordPress. If you have a WordPress Network (“Multisite”), you can either Network Activate this plugin, or Activate it individually on the sites where you wish to use it. Activating on individual sites within a Network avoids some of the confusion created by WordPress’ hiding of Network Activated plugins on the Plugin menu of individual sites. Alternatively, to avoid this confusion, you can install the jonradio Reveal Network Activated Plugins plugin.
  3. Insert the [y], [c] and/or [cy] shortcodes as many times as you wish in one or more WordPress Pages or Posts.

FAQ

Why are some or all of the Shortcodes showing instead of their values being displayed?

This can happen if this plugin is not activated on the site you are using it on. Or if you mistyped the name of the Shortcode.

If you need to use a Shortcode other than in the body of a Page or Post, you will also need the jonradio Reveal Network Activated Plugins plugin. It must be activated and have the relevant Settings selected that correspond with where you have inserted the Shortcodes.

How can I change the names of the Shortcodes?

If there is enough interest, we will add that capability to a future version. Please let us know, including your ideas on how you would like it to work, and any shortcode naming conflicts with other plugins that you found.

You can fill out this Contact Form (click here).

Reviews

Does not work with themes; poor support

Wasted a lot of time trying to get this plug-in to work, which it didn’t, even after wasting additional time with the same developer’s “Shortcodes Anywhere and Everywhere”….Note that this plug-in is not updated or maintained in any way for current versions of WordPress, so I would recommend finding an alternate solution.

Finding an answer as to why it didn’t work was also futile. No real answer is available publicly, even though I saw that other people had the same issue. When I reached out to the developer of this plug-in for some help … he offered very little of it, was rude, unhelpful, and finally condescended to give me a useless answer that I already knew … “Yea. It won’t work….”

Easy!

Thank you for this shortcode solution. I was so tired of editing the php files and having my edits deleted with every theme update. This short code works exactly as expected.

Does what it says

Works great with Beaver Builder footer code and everywhere else I’ve tested it. Simple, effective, no problems.

Easy to change Shortcode names

I was going to write my own Shortcode to do this .. and now I don’t have to, thanks to you!

For anyone interested, it’s very simple to alter the Shortcode names to something a bit less simplistic. All that’s needed is to edit a single file “jonradio-current-year-and-copyright-shortcodes.php” and change THREE lines as follows:

#1
BEFORE:  add_shortcode( 'y', 'jr_cy_y' );
AFTER:   add_shortcode( 'jrsc_curryear', 'jr_cy_y' );

#2
BEFORE:  add_shortcode( 'c', 'jr_cy_c' );
AFTER:   add_shortcode( 'jrsc_copyright', 'jr_cy_c' );

#3
BEFORE:  add_shortcode( 'cy', 'jr_cy_cy' );
AFTER:   add_shortcode( 'jrsc_both', 'jr_cy_cy' );

Once you’ve completed this change, you can use the new Shortcode names:

jrsc_curryear   - current year
jrsc_copyright  - copyright symbol
jrsc_both       - copyright symbol + space + current year

Hope this helps!

Saved me some time

I was going to write one of these myself but found this lovely individual did it already. Sure saved me some time!

Read all 9 reviews

Contributors & Developers

“Current Year and Copyright Shortcodes” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0

  • Copyright shortcode added
  • Current Year Shortcode converted from Shortcode Exec PHP plugin to standalone Plugin