Auto Add Dynamic Year in WordPress Post & MetaTitles

#39596
  • Resolved Amit Yadav
    Rank Math free

    Hi, I want to add a shortcode to automatically change the date and year in the post title and meta title. I followed this guide – https://support.rankmath.com/ticket/auto-add-dynamic-year-in-wordpress-post-titles/

    and able to change post title using %currentmonth% %currentyear% but there is an issue, it doesn’t change meta title to month, year and only show shortcode. I know it can be archived this by changing some code in Rank Math metabox but I don’t want to update in 2 places.
    So is there any function so that when I update %currentmonth% %currentyear% in my post title and it changes into my post title and meta title both.

    thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    Could you please share some screen shots of what you have so far so that we can understand this use case?

    Looking forward to helping you. Thank you.

    ​​​​​​​

    ok,
    So, I added %currentmonth% %currentyear% in the title and its visible in post title here – https://prnt.sc/rqp0tp

    But in Meta title, it still shows like – https://prnt.sc/rqp391

    but it should be like the title that is visible in the post. maybe any code that can convert this for meta title too just like post title.

    You can Check Live link here – https://heavybubbles.com/best-iron-filter/

    thank you.

    Hello,

    Thank you for contacting us today.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Auto Add Dynamic Year in WordPress Post & MetaTitles’ is closed to new replies.