Copyright year automatic

Asked on September 16, 2016 in General Questions.

Have looked and not found –

Is there a shortcode or something I can use to add the  simple script to update the copyright year automatically?

&copy; 2008<?php echo date(“Y”) ?>

Not wanting to use plugins to do this, as it’s just one simple line of code.

wonderwoman Layers User
Reply
  • Possible Answers to Your Question:

  • 2 Answer(s)
    Answered on September 19, 2016.

    Hi wonderwoman,

    I know it’s a plugin, but I thought I’d share it in the meantime anyway since it looks like the Layers Dev Team seem as though they may be working on something. The WPSOS Automatic Copyright Year short code seems to work pretty well.

    https://wordpress.org/plugins/automatic-copyright-year/

    Jack

    Hi Jack

    Thank you for the suggestion.

    For some reason that plugin isn’t playing well.  Have tried to put it in the copyright text footer area with no success (just get the html displaying).  Also tried it in the pages using both the html edit side of things and the standard wysiwyg mode.  No luck, not sure why.

    on September 20, 2016.

    Hmm, have you tried adding the below code?  It doesn’t seem to like it if it isn’t in a span sometimes.

    Jack

     <span>[wpsos_year]</span>
     

    EDIT: Hmm, I just tested it and can confirm it doesn’t work in the Layers footer. :-/

    on September 21, 2016.
    Reply
    Answered on September 19, 2016.

    Hi WW,

    It has been brought up before but we haven’t found the best solution yet for it.

    Thanks for the reminder though we’ll see what we can do.

    ~ Marc

    I read your blog frequently and I just thought I’d say keep up the amazing work!먹튀검증

    on April 24, 2022.

    Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info.spring loaded slam latch

    on April 27, 2022.

    If more people that write articles involved themselves with writing great content like you, more readers would be interested in their writings. I have learned too many things from your article. 순천역 렌트카

    on May 1, 2022.
    Reply