Hello,
Thank you for contacting Rank Math today.
Yes it is possible to use shortcodes on the meta descriptions but you will also need to add the following code snippet on your theme’s functions.php file:
/**
* Allow changing the meta description sentence from within the theme.
*
* @param string $description The description sentence.
*/
add_filter( 'rank_math/frontend/description', function( $description ) {
return do_shortcode($description);
});
Looking forward to helping you. Thank 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.