How to Set the Current Year in Post description Using [year] Shortcode

#343753
  • Hi!
    I found information how to Set the Current Year in Post TITLE Using [year] Shortcode, but i need to use this tag in DESCRIPTION too. Can you help me whith that??? Thanks anyway

Viewing 7 replies - 1 through 7 (of 7 total)
  • Kamlesh
    Rank Math free

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    You can simply add the variable %currentyear% in your Meta Description to display the current year in your description.

    Hope this helps.

    Looking forward to helping you. Thank you.

    Kamlesh, thank you very much! It works! Good bye! Thx!

    Hello,

    We are super happy that we could address your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

    Done! Wrote a Review, after moderation it wll be visible. Good luck!

    Hello,

    We appreciate your review. Thank you so much!

    Please do not hesitate to let us know if you need our assistance with anything else.

    When I have [year] in the h1, does it show in the meta title or not? Because if it does then adding %currentyear% will mean that the year will show twice on the meta title?

    Hello @george23,

    Thank you for contacting Rank Math support today and bringing your concern to our attention.

    Assuming your H1 is also your post’s title if your meta title contains the %title% variable, then Rank Math will copy the contents from H1, displaying two texts of the year since you are also using the %currentyear% variable.

    In addition, Rank Math’s meta doesn’t read the shortcode so it will simply display “[year]” to the meat.

    Hope that helps. Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.