• Resolved testarn

    (@testarn)


    Hello!

    How can i make a custom title with current month and year (in swedish language)

    I have found these %%currentyear%% and %%currentmonth%% but you advice not using them in your documentations?

    Also i assume these are only the english words? (I cant verify because april is april in swedish).

    Thanks in advance!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ehm. The months name is April in English, i.e. capitalized

    Thread Starter testarn

    (@testarn)

    @tobifjellner Ok so it’s most likely working already then? 🙂

    But can i use this even tho Yoast recommends not using the shortcodes?

    Deprecated Variables
    We’ve deprecated these variables as we see no valid use-case for them. If they are used in the snippet editor, they won’t appear in the snippet preview, but they will show up in your source code to maintain backward compatibility. We recommend not using them.

    Well. That’s beyond my knowledge. But a notice about “deprecated” means that sooner or later it probably will break.

    Plugin Support amboutwe

    (@amboutwe)

    The reason we do not recommend them is because they automatically update.

    So this month would be April, but in a few days, would automatically update to May. Same for year, today would be 2019 but next year would automatically update to 2020. Depending on cache and how long search engines take to update information, these variables could be incorrect as well.

    We haven’t found a scenario where automatically updating the month/year has SEO value so we deprecated them.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom title’ is closed to new replies.