-
Hi,
When I create a product, I want the product description to have the following.
%title% %excerpt%. Buy gift ideas online from Novelty Gifts Galore. Find the perfect present for him or her for any special occasion.
When I create a product, the added text is not included. Could you please help?
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
This is the order we follow to generate meta descriptions for WooCommerce products or product categories for that matter:
https://rankmath.com/kb/how-to-set-product-meta-description/#how-product-meta-description-is-selectedYou can follow the steps in our guide to add the code on your site to force the usage of the meta description you have added in Rank Math > Titles & Meta > Products > Single product description.
Also, please note that the description 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.
Thank you.
Can someone, please help>
Hello,
Did you add the code mentioned here? https://rankmath.com/kb/how-to-set-product-meta-description/#how-to-set-single-product-description-as-meta-description
That is required to override the default order that we use in our plugin as we mentioned in the reply above.
Don’t hesitate to get in touch if you have any other questions.
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hi Support,
I have created a link for you.
Please be aware that the website is currently not live and the “coming soon” plugin needs to be disabled and enabled again. I have given you two weeks until the link expires.
Thank you for your help.
Hello,
When we checked the product, we could see that the “Test” is showing because you have the word in your meta title:
Also, looking at the page source of the product you mentioned, we can see that it is showing the correct description that you have set:
Please check again and let us know if you’re still experiencing this, if you are, please share the direct URL of the product you’re experiencing it on as well as two screenshots showing what the description should be and what it is showing.
We hope this helps clarify the issue. Please let us know if you have any other questions or concerns.
Hello,
We have checked this and we can see that the variable in the description is working properly. Here’s a test we did:
Please doublecheck this on your end and if it is not working on your end, please share the direct URL of the product it’s not working on.
We are looking forward to hearing back from you.
Hi Support,
I think you don’t understand what I want.
I want the Meta description to automatically add the same content as the Meta title.
For example on your app, I have included the following for the “single Product Title”
%title% %page% %sep% %sitename% | Test. The following will have custom text inserted.
For the single product description, I want the following to be added automatically rather than having to enter inside each product every time.
%title% Buy gift ideas online from Novelty Gifts Galore.
Find the perfect present for him or her for any special occasion.
Hello,
We checked again and yes the description is working for that as well. See:
If you are referring to something else please record a video of the issue and we’ll be happy to take a look further into it.
Thank you for choosing Rank Math
Hello,
We checked again and yes the description is working for that as well. See:
If you are referring to something else please record a video of the issue and we’ll be happy to take a look further into it.
Thank you for choosing Rank Math
Hi Support,
I sent a video using WeTransfer.
The video is called automatically and sets the Titles & Meta for each product (By Yhon Soto)
Kindly, check the rest of the products as suggested in the video.
I don’t want to edit the products manually.
Hello,
Please share the video link here so we can check the issue for you. When sharing the video via WeTransfer you can choose to share via URL.
We are looking forward to hearing back from you.
Hi Support,
I have sent the video via WeTransferusing the following email: s******@r***********
Hi Support,
We used WeTransfer using the following email s******@r***********.
Hello,
I have added the following filter to your theme’s functions.php file:
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; });
Now, all the products will have the meta description that you have set in the Titles & Meta settings. Please note that the correct description will be added in the front end. In the snippet editor, you will still see the product short description.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
The ticket ‘It is possible to automatically set the Titles & Meta for each prouct’ is closed to new replies.