Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] what's the tag for cust post type CATEGORY in title? (3 posts)

  1. jivyb
    Posted 4 years ago #

    WordPress version: 3.4
    WordPress SEO version: Version 1.2.4

    I did this: put %%category%% for title to insert category name, BUT it's a custom post type called "Products" and has its own product-category that's different from the regular WP categories.

    I expected the plugin to do this: insert the category into the title tag

    Instead it did this: inserted nothing because I need a different code to put in that calls for the custom category for products.

    What is the code to access a custom post type category for a title?


  2. housebg
    Posted 4 years ago #

    Hi Jivyb,

    I might be able to help you, as I use custom post types with this plugin and they have their own custom taxonomy for their "categories".

    What I use in the title is %%term_title%%, which will return the custom taxonomy name.

    Hope that helps!

  3. jivyb
    Posted 4 years ago #

    Excellent. That's what I needed. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic