WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How To Echo / Get Term Taxonomy name in Tax.php (4 posts)

  1. joehuffman2
    Member
    Posted 4 years ago #

    I don't know if I am just not finding the right functions but how to you retrieve the taxonomy title for a term in taxonomy.php?

    If you had the taxonomy "fruit" and the term "apples", you can use get_the_term to retrieve apples, but how can you do the same for the taxonomy? I am trying to find the taxonomy name to perform a redirect.

    Is it possible to use something like term->taxonomy? Is there a value for the taxonomy name I can get from the $term variable?

  2. chinmoy
    Member
    Posted 4 years ago #

    Hi,

    see this http://chinmoy29.wordpress.com/2010/07/02/creating-a-custom-taxonomy/#comment-24

    You absolutely think right direction. For taxonomy, use $term->taxonomy and for classification use $term->name

    thanks
    c

  3. joehuffman2
    Member
    Posted 4 years ago #

    Thanks, didn't know it was a return value. You helped me a lot!

  4. chinmoy
    Member
    Posted 4 years ago #

    you're welcome!!:)

Topic Closed

This topic has been closed to new replies.

About this Topic