-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template variable for a parent product category %%ct_product_cat%% fails to be outputted on sub product category pages #12211
Comments
related #12156 |
Hmm. I think this one is slightly different to #12156. If I'm reading this right, the challenge is: "I have a product called 'red sock' in WooCommerce, categorised in 'footwear'. I want the title to be In this case, We have |
Well, that should work, I think! Bug! |
I think the A similar feature request was submitted some time ago #6527 but it was closed at that time. |
Please inform the customer of conversation # 486296 when this conversation has been closed. |
Please inform the customer of conversation # 551730 when this conversation has been closed. |
+1 Sadly still not fixed, I've had this issue since 2020. This however outputs not the primary category, but ALL the categories that the product is assigned to. |
Hi @jan-caerels As mentioned in our help center for the snippet variables, %%ct_product_cat%% will output all the categories that are selected for the product page separated by commas.. So the result you have noticed is an expected result. This issue is about outputting the parent category name when the |
Is your feature request related to a problem? Please describe.
Users want to output the parent product category in the title of a sub product category
Describe the solution you'd like
Users must manually enter in the parent product category. We should provide template variable for a parent product category.
Note, the parent title variable does not work: https://kb.yoast.com/kb/yoast-wordpress-seo-titles-metas-template-variables/.
why you think the feature request is something we should consider for the Yoast SEO plugins?
Improve UX and Content SEO
The text was updated successfully, but these errors were encountered: