• Resolved jimbo777

    (@jimbo777)


    Hi,
    I am looking for a way to populate the title with the secondary and tertiary category name. I can’t find much info on this subject and I only see primary category under available variables. I would appreciate if someone can guide me in the right direction.

    My category structure is for example like this:

    Ford – Mustang – 2010 – Exhaust
    Ford – Mustang – 2011 – Exhaust
    Ford – Mustang – 2012 – Exhaust

    When the visitor is on the exhausts category. I would like the category to have the year in the title i.e. Exhausts for Ford Mustang 2012

    Thank you very much in advance for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jimbo777

    (@jimbo777)

    Ok I found this variable %%ct_product_cat%% but it doesnt seem to be populating any value at all? hmmm *scratching head*

    Hi,

    Yoast does not have the ability to output secondary or tertiary categories into the title. We had a feature request to add this but it was closed. See: https://github.com/Yoast/wordpress-seo/issues/7489.

    However, you can create your own custom template variable and force Yoast to output it. This guide explains more: https://yoast.com/help/list-available-snippet-variables-yoast-seo/#creating-custom.

    Unfortunately, there’s a difference between the support we can offer and the level of programming needed to change (core) features of our plugin. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. And even though we cannot be of any assistance, you’re completely free to change anything in the plugin to better suit your needs.

    We highly recommend checking out?our list of Yoast Partners here https://yoast.com/yoast-partners/ in case you are in need of development.

    We will also keep this issue open for 2 weeks in case someone from the community can help. Perhaps a developer watching these forums can assist further. After which, we will close in order to keep the overview.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to place secondary and tertiary category name in title?’ is closed to new replies.