-
I want to display the current month and year in the meta title as following:
(September/2020).Unfortunately the shortcodes do not work if I do not seperate them with an empty space.
So this doesnt work:
(%currentmonth%/%currentyear%)Is there any way to use variables without using empty spaces between them?
Thanks 🙂
-
Hello,
Thank you for contacting Rank Math.
You can use
%currenttime(M/Y)%
or modify%currentdate%
variable and let us know if it helps your case.Looking forward to helping you. Thank you.
​​​​​​
The img Input did not work.
So here are the images:
https://monosnap.com/file/ZcBWDR8NFKwkh3465Ta5JJTVlKoP3k
https://monosnap.com/file/8KsiZzPcP2Kl4LkTnQLdD9Cu69Zvvd?idx=0&total=33
- This reply was modified 4 years, 3 months ago by Davin Harbring.
Thanks for your reply. 🙂
Thats the result I get using %currenttime(M/Y)%.
Thats the result I get using %currentdate%.Both options do not work in my case.
Can you help me out further?thank you very much!
Hello Davin,
The variable may not reflect in the preview but it should show the correct data in the front end. Please check the actual output on your page source or publish and test your URL here: https://www.heymeta.com/
Looking forward to helping you. Thank you.
​​​​​​
Thanks!
%currenttime(m/Y)%
Archieves the results I was looking for! Thank you very much!
Hello,
We are super happy that this resolved your issue. 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.
You must be logged in to reply to this ticket.