Using shortcode in Post title

I have lots of posts where I have current month with the post title.

When month ends, it’s kind of annoying to change all the posts manually. So, I created a shortcode to show the current month.

I used add_filter( 'the_title', 'do_shortcode' ); to execute the shortcode in title. It all works fine.

Problem is, in the meta title, the raw shortcode is showing instead of the output.

Any suggestions how I can work it out.

Thanks in advance.

Read more here: Using shortcode in Post title

Leave a Reply

Your email address will not be published. Required fields are marked *