WordPress.org

Forums

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

  1. jivyb
    Member
    Posted 3 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.

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

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. housebg
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

    Excellent. That's what I needed. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic