Hello,
We apologize for the issues you are facing with generating product descriptions and the focus keywords not appearing correctly on your product pages. Thank you for raising these concerns.
Issue 1: Generating Product Descriptions
For generating product descriptions, it’s important to ensure that you are using the Rank Math Content AI feature, which can help you with the exact keyphrases to use in your SEO descriptions. If you’re having trouble with this, please ensure that you have the latest version of Rank Math installed and that all necessary modules are enabled.
Issue 2: Focus Keywords Not Appearing
Regarding the focus keywords not appearing for some products, it could be due to several reasons:
- Product Visibility: Ensure that the products are set to be visible in your store settings.
- Focus Keyword Assignment: Double-check that the focus keywords are correctly assigned in the Rank Math meta box for each product. You can do this by navigating to the product edit page and looking under the Rank Math section.
- Caching Issues: Sometimes, caching plugins can cause issues with updates not appearing. If you have a caching plugin enabled, try clearing the cache.
- Theme Compatibility: Ensure that your theme is compatible with Rank Math and that there are no conflicts.
If you continue to experience these issues, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.
Thank you for your patience, and we look forward to resolving this for you!
Hi Support,
Thank you for your email
Issue 1:
For the following, I want to use the building generator not using AI. Please see the image below, I want to add a custom text to all my products. Can you, kindly check the settings for post types –> products –> product archive description? If the following is possible can a get code be implemented?
Issue 2
The keywords for the collection worked, however, for the product tags they don’t get imported to the focus keyword. Also, some of the products don’t have the focus or don’t get imported only new products.
For example, the product The Sun Celestial Incense Holder, SKU: S03723354
Another example where the data does not get imported is the small Square Quartz Travel Alarm Clock – Pink, SKU S03720171 nothing gets imported
I have added the codes to the functions.php and cleared the cache
Hello,
Thank you for contacting Rank Math support.
1. The Product Archive Description field is used to set the description of the archive page of the products, not the single products. If you want to set the description for single products, add it to the Single Product Description field.
2. The code you have used will only add the product category as the focus keyword for the 100 products, as the posts_per_page arg is set to 100. To add the focus keyword to all the products, please use the following filter:
function update_product_focus_keywords()
{
$products = get_posts(array(
'posts_per_page' => 500,
'offset' => 500,
'post_type' => 'product' //replace post with the name of your post type
));
foreach ($products as $p) {
$keywords = [];
if (get_the_terms($p->ID, 'product_cat')) {
foreach(get_the_terms($p->ID, 'product_cat') as $term) {
$keywords[] = strtolower($term->name);
}
update_post_meta($p->ID, 'rank_math_focus_keyword', implode(", ", array_unique($keywords)));
}
}
}
add_action('init', 'update_product_focus_keywords');
This code will add the focus keyword for 500 products at once. Please make sure to increase the offset value by 500 each time you run the code.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hi support,
I appreciate your help.
For issue one the issue is still not fixed, I’m currently using the single product title and single product description for the SEO Meta Titles.
I now want to generate some custom text for the “long” product archive description. Please note that I want to include some text in the product’s long description.
———- Support message
Hello,
Thank you for contacting Rank Math support.
1. The Product Archive Description field is used to set the description of the archive page of the products, not the single products. If you want to set the description for single products, add it to the Single Product Description field.
Hello,
The product’s long description isn’t managed by the fields of our plugin. You will have to manually add the details to the product editor to modify the long description.
Please do not hesitate to let us know if you need our assistance with anything else.
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.