Done. This will be available in the next version.
Thread Starter
Nirr
(@nirmithamw)
Thanks so much for your reply, Tran!
Thread Starter
Nirr
(@nirmithamw)
I see that you’ve added this {{ current.month }} variable, but not in the way I thought.
Well, each month, it should show the current month’s name like January, February, March, etc.
But, {{ current.month }} will add the month in the number format (1,2,3) – this is not what I mean.
It should show the month in naming style and the numbering style is not helpful.
-
This reply was modified 1 year, 4 months ago by
Nirr.
Hi @nirmithamw ,
It would be hard to choose which format to show for current month. You might need full month name (January), but others might need just 01, or Jan.
In this case, I’d suggest you creating a simple shortcode to get the month name, like this:
add_shortcode( 'month', fn() => date( 'F' ) );
And then use the shortcode [month] in the meta title.
Thread Starter
Nirr
(@nirmithamw)
This format is way batter, I guess: Jan 2024, Dec 2024, Feb 2024
So, I created this:- add_shortcode( 'month_year', fn() => date( 'M Y' ) ); and added it as a snippet.
Now, I can use this on meta titles [month_year]
If possible, Add this format to “Others” section of the plugin.
Thanks in advanced!
-
This reply was modified 1 year, 4 months ago by
Nirr.
-
This reply was modified 1 year, 4 months ago by
Nirr.
-
This reply was modified 1 year, 4 months ago by
Nirr.