Hello, I apologize for the inconvenience you’re experiencing. To conditionally display the meta title of tags based on the products’ categories, you can achieve this using Rank Math’s dynamic variables and filters.
You can set up a pattern in Rank Math’s settings using the %term%
variable and then use a filter to modify the meta title based on the product categories.
Here’s an example of how you can achieve this:
-
Set up the pattern in Rank Math’s settings: %term% %sep% free
-
Use a filter to modify the meta title based on the product categories. You can add a custom filter to check if the product belongs to a specific category and then modify the meta title accordingly.
If you need assistance with setting up the filter or have any further questions, please feel free to ask.
If you have any further questions or need assistance with setting up the filter, please feel free to ask.
Sources:
Bulk Editing Options in the Rank Math SEO Plugin
General Tab in Meta Box of Rank Math SEO Plugin
Open Graph Meta Tags » Rank Math
Hello,
Thanks for reaching out to us. We’re sorry to hear that you’re having trouble with your tag meta title.
Let me see if I understand your situation correctly. You want to display different words in the meta title of a tag, depending on which category the products in the tag belong to? Please share more details about your use-case so we can understand it better.
That said, this is most likely not something that Rank Math can do out of the box. You’ll need some custom coding to achieve this functionality. You can speak with your developer to use Rank Math’s filters to modify the meta title based on your preferred conditions. You can find more information about Rank Math’s filters here: https://rankmath.com/kb/filters-hooks-api-developer/
One possible filter that you can use is rank_math/frontend/title
, which allows you to change the SEO title of any post type or term. You can use some conditional logic to check the product category and append the appropriate word to the tag title.
I hope this clarifies the issue for you. If you have any other questions or need more help, please don’t hesitate to contact us again.
Thank you for choosing Rank Math!
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.