The description of the Unique Products is not respecting the Global customizatio

[ad_1]

Hello @weberinfosp,

Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

This is the order we follow to generate meta descriptions for WooCommerce products:

1. Content from SEO Description field
If that is missing, then:
2. WooCommerce Excerpt or Product Short Description
If that is missing, then:
3. Template From General Settings in WordPress Dashboard > Rank Math > Titles & Meta > Products
If that is missing, then:
4. Auto-generated Content from the product page.

However, if you want to force the use of the description you have set in Global product settings, please add the following filter:
/** * 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 ( is_product()) { $desc = RankMath\Helper::get_settings( "titles.pt_{$post->post_type}_description" ); if ( $desc ) { return RankMath\Helper::replace_vars( $desc, $post ); } } return $description; });

And here’s how you can add a filter/hook to your WordPress site:

Please note that the filter may not be visible while editing the products as it only works when your products load in a browser. Once done, clear your website’s cache and check the published product 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/

Hope that helps.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer