-
<meta name=”description” content=”12345″>
-
Hello, we apologize for the issue you are facing. Having multiple meta description tags on a single page can lead to confusion for search engines, as they may not know which description to prioritize. It’s best practice to have only one meta description tag per page to ensure clarity and effectiveness in SEO.
If you are seeing multiple meta description tags in your HTML, you should review your website’s code or the settings in your SEO plugin to ensure that only one is being generated.
For more information on how to write a great meta description and how Rank Math helps with this, you can refer to our article on What is the Ideal Meta Description Length?.
Thank you for raising this concern! If you have further questions or need assistance, please reply to this ticket, and a human agent from the Rank Math Support team will assist you.
Sources:
What is the Ideal Meta Description Length? » Rank MathHello,
Can you please share the affected page URL with us so that we can check the issue further for you?
However, if you’re referring to the product description, this is the order we follow to generate meta descriptions for WooCommerce products:
1. Content from the 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 (long description)However, if you want to use the long description (product description) as your meta description then you’ll have to create a custom variable for the product’s long description by adding 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 ); }Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
After this, you can use the
%woo_full_desc%variable in the SEO description or single product description field.Please note that the filter may not be visible while editing the products as it only works when your products load in a browser. You can check the published/saved product’s meta description via its source code.
Let us know how it goes. 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.
The ticket ‘multiple meta description tags’ is closed to new replies.