Hello,
Thank you for your query, and we are so sorry about the trouble this must have caused.
The process we follow to generate meta descriptions for WooCommerce products is as follows:
1 . We first look for content in the SEO Description field.
2 . If this is not available, we move to the WooCommerce Excerpt or Product Short Description.
3 . If this is also missing, we turn the Template From General Settings in the WordPress Dashboard > Rank Math > Titles & Meta > Products.
4 . If this is missing as well, finally we use the automatically generated Content from the product page (long description).
Since your descriptions are being added in the Titles & Meta, they will supersede the short description. To use the description from the global settings instead, you need to add the filter provided below.
Note that while the filter will apply the correct description to the front end, the short description will still appear in the snippet editor of the meta box.
You can confirm that the correct meta description is being used by applying the code and then using the Meta Tag Analyzer tool at this link: https://rankmath.com/tools/meta-tag-analyzer/
Here is the filter code you need to add:
add_action( 'rank_math/frontend/description', function( $generated ) {
if ( ! is_product() ) {
return $generated;
}
global $post;
$desc = RankMath\Helper::get_settings( "titles.pt_product_description" );
$desc = RankMath\Helper::replace_vars( $desc, $post );
return empty( $desc ) ? $generated : $desc;
});
And here’s a guide on how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank you.