• Resolved gowthamkg

    (@gowthamkg)


    I have a custom taxonomy called ohio-portfolio-category

    It’s confirmed from this URL
    https://[my website]/wp-admin/term.php?taxonomy=ohio_portfolio_category&tag_ID=97&post_type=ohio_portfolio&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dohio_portfolio_category%26post_type%3Dohio_portfolio

    I want this taxonomy variable to be added in the SEO Title and hence from following Yoast Documentation, I added this ‘%%ct_ohio_portfolio_category%%’

    But this variable is not working and I get the same variable text repeated in the SEO title as well.

    What should I do?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @gowthamkg,

    Thanks for reaching out!

    It is possible to create custom template variables. Adding your own template variables can be done using the wpseo_register_extra_replacements filter in your functions.php file. An example of how to use the filter can be viewed here.

    Thread Starter gowthamkg

    (@gowthamkg)

    I’m sorry but I do not understand how this is related to my question.

    I’m asking about the Custom Taxonomy Variable which is mentioned here – https://yoast.com/help/list-available-snippet-variables-yoast-seo/#advanced-variables

    <custom-tax-name> (custom taxonomy)

    Hi @gowthamkg

    I assume that you want to output categories on the SEO title of the post assigned to the category of custom taxonomy ohio_portfolio_category. Is that correct?

    %%ct_ohio_portfolio_category%% variable should output a list of custom taxonomy categories in which that particular post is assigned to. I’ve tested this with the latest version v15.0 of Yoast SEO and its working.

    Can you confirm you have the latest version?

    Thread Starter gowthamkg

    (@gowthamkg)

    Yes, I do have the latest version. And, unfortunately, it’s not working for me.

    Attached a screenshot here

    @suascat_wp

    • This reply was modified 4 years, 4 months ago by gowthamkg.

    Hi @gowthamkg,

    Thank you for your reply and screenshot.

    While it might not be shown in our preview, have you updated the post or page and checked the title? In some cases, the custom variables are not showing in our preview section, but the output should be working on the frontend of your site.

    Thread Starter gowthamkg

    (@gowthamkg)

    @jeroenrotty Wow, yes. It does work in the frontend. Thanks a lot!

    I would request you to fix this issue of not displaying in the preview or just put it in the documentation link that this is a known issue.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We appreciate you for bringing this to our attention. There are already multiple issues open for the snippet preview that doesn’t update the custom taxonomy template variable preview. So, our development team will surely look into this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom Taxonomy Variable is not working’ is closed to new replies.