-
We recently migrated from Yoast SEO to Rank Math, and we previously had a default single product description set up in Yoast. After the migration, I can see that the correct description was imported under Rank Math > Titles & Meta > Single Product Description, so the settings seem to have transferred correctly.
However, the actual meta description shown on product pages is different. Instead of using the predefined single product description, Rank Math appears to be forcing the excerpt as the meta description.
How can we fix this issue ?
Thanks in advance for your help!
-
Hello,
We apologize for the issue you are facing with the single product meta description after migrating from Yoast to Rank Math. It seems that Rank Math is defaulting to the product excerpt instead of using the predefined single product description you set up.
To resolve this issue, please follow these steps:
-
Check the Meta Box: Go to the individual product edit page in your WordPress dashboard. Scroll down to the Rank Math SEO Meta box and ensure that the meta description is correctly set there. If it’s not, you can manually enter the desired description.
-
Template Settings: Ensure that your template for the Single Product Description under Rank Math > Titles & Meta > Single Product Description is correctly configured. You can use template variables to create a dynamic description if needed.
-
Clear Cache: If you are using any caching plugins, clear your site cache after making changes to ensure that the latest settings are reflected on the front end.
-
Check for Conflicts: Sometimes, other plugins or themes may conflict with Rank Math. Temporarily disable other plugins to see if the issue persists. If it resolves, re-enable them one by one to identify the conflicting plugin.
-
Update Permalinks: Go to Settings > Permalinks and simply click on Save Changes to refresh your permalinks, which can sometimes resolve issues related to meta tags.
If you have followed these steps and are still experiencing issues, please reply to this ticket with your site URL so we can assist you further. A human agent from our support team will take over and provide more specific guidance.
Thank you for raising this concern, and we hope to help you resolve it soon!
Hello,
Thank you for your patience.
This is the order we follow to generate meta descriptions for WooCommerce products or product categories for that matter:
1. SEO description (Rank Math meta box while editing)
2. Product Short description
3. Single product description (Titles & Meta settings)
4. Product description (long description)Here’s a link for more information:
https://rankmath.com/kb/how-to-set-product-meta-description/If you want to use the long description, then you may need to use this filter on your site:
add_action( 'rank_math/vars/register_extra_replacements', function() { rank_math_register_var_replacement( 'woo_full_desc', [ 'name' => esc_html__( 'Woo Full Desc.', 'rank-math' ), 'description' => esc_html__( 'Woo Full Description...', 'rank-math' ), 'variable' => 'woo_full_desc', 'example' => woo_full_desc_callback(), ], 'woo_full_desc_callback' ); } ); function woo_full_desc_callback() { global $post; if ( empty( $post ) ) { return 'Product Description'; } return wp_strip_all_tags( $post->post_content ); }
Once done, you can use the
%woo_full_desc%
variable in Titles & Meta > Product > SEO description field instead of %excerpt%.Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Looking forward to helping you.
Hello,
I don’t want to use full or short description for the meta product description . I have already a prepared phrase which is “Découvrez le %title% disponible chez Tapis Bouznah , le spécialiste du tapis fait main à Paris depuis 1956. Livraison et retour gratuits.” I added this text in the “single product description” in the RankMath Settings : https://www.tapis-bouznah.fr/wp-admin/admin.php?page=rank-math-options-titles
Do you understand ?
ThanksHello,
Apologies for the confusion.
If you want to force the usage of the meta description you have added in Rank Math > Titles & Meta > Products > Single Product Description, then you may need to add this filter instead:
/** * 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() && (empty($desc))){ $desc = RankMath\Helper::get_settings( "titles.pt_{$post->post_type}_description" ); if ( $desc ) { return RankMath\Helper::replace_vars( $desc, $post ); } } return $description; });
Hope that helps.
Thank you for your response. However, I find it quite surprising that I need to add custom code for something that should work natively within Rank Math. The Single Product Description is clearly set in the Titles & Meta settings, yet Rank Math still forces the product excerpt as the meta description.
Before considering a custom workaround, I expected this to function properly out of the box. We’ve already tried clearing the cache, checking the meta settings for individual products, and ensuring no other plugins are interfering. Yet, the issue persists.
We were actually considering upgrading to Rank Math Pro for our SEO needs, but encountering such a basic issue and requiring manual code adjustments is making us hesitant. Could you confirm if this is a known bug, or if a proper fix is planned?
Hello,
We understand your concern, and we appreciate your feedback. Rank Math follows a structured hierarchy for meta descriptions, prioritizing the meta box description first. The Titles & Meta > Single Product Description setting serves as a fallback when no other descriptions are set at the product level.
However, we acknowledge that in your case, you expect the predefined Single Product Description to take priority without additional code. While the provided filter is a valid solution, we will forward your feedback to our development team for review to see if this behavior can be improved in a future update.
In the meantime, please let us know if you need assistance implementing the filter or if there are any other concerns.
I have to say that this response is quite disappointing. Saying “we will forward your feedback to our development team” feels like a generic answer with no real commitment to addressing the issue.
Meta descriptions are a crucial part of SEO, and I’m genuinely surprised that Rank Math doesn’t seem to take this seriously—especially for a plugin that aims to be the best WooCommerce SEO solution. This isn’t just a minor inconvenience; it’s a fundamental feature that should work out of the box without requiring custom code.
If Rank Math truly wants to stand out as the leading SEO plugin for WooCommerce, then addressing such basic functionality should be a priority. Can you confirm whether this will be fixed in an upcoming update? Otherwise, we may have to reconsider our choice of SEO plugin.
Looking forward to your response.
Hello,
Sorry, but we don’t have immediate plans to change the order of how we construct the product meta description in our plugin as doing so will affect thousands of users who already using this standard order.
At the moment, the effective way of forcing the use of the settings you added in the Titles & Meta is by using the provided filter code.
Don’t hesitate to get in touch with us if you have any other questions.
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.
-
The ticket ‘Issue with Single Product Meta Description after Migrating from Yoast to Rank Ma’ is closed to new replies.