Hello @bilal7k,
In this case, you can use this filter to force the meta description you have set in Rank Math > Titles & Meta > Post > Single post description:
/**
* Use the Description from Global Setting, if the description is missing in the Post metabox
*/
add_action( 'rank_math/frontend/description', function( $description ) {
global $post;
$desc = RankMath\Post::get_meta( 'description', $post->ID );
if ( ! $desc ) {
$desc = RankMath\Helper::get_settings( "titles.pt_{$post->post_type}_description" );
if ( $desc ) {
return RankMath\Helper::replace_vars( $desc, $post );
}
}
return $description;
});
Here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Please note that the filter may not be visible while editing your posts as it only works when they load in a browser. Once done, clear your website’s cache and check the published post meta description via the page’s source code.
You can check the final output of the meta description here:
https://rankmath.com/tools/meta-tag-analyzer/
Hello @dongphuchaitrieu,
We deeply apologize for that.
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/
Here is a video you can follow as well:
https://www.youtube.com/watch?v=FcIWRhcUP2c
Only the site admin would know and your users won’t be affected by this troubleshooting.
If the issue persists, please let us know. Looking forward to helping you.
Hope that helps.