WordPress.org

Ready to get started?Download WordPress

Forums

Get all terms from a custom taxonomy (4 posts)

  1. David Gard
    Member
    Posted 3 years ago #

    Hey all,

    I suspect this is really simple, but just can't find it anywhere - How can I put the names of all terms from a custom taxonomy in to a variable? Not the ones attached to a post, but all of them that have been created in that tasonomy.

    Thanks

  2. davebonds
    Member
    Posted 3 years ago #

    I'm trying to do the same thing, display all the terms from a taxonomy outside of the loop, and can't find it anywhere. Everything I've found requires the post ID.

  3. AliMH
    Member
    Posted 3 years ago #

    i'm searching for it too.

  4. Mark / t31os
    Moderator
    Posted 3 years ago #

    I guess this page slipped past you then..
    http://codex.wordpress.org/Function_Reference/get_terms

    For examples of how to store in a variable see the examples section.
    http://codex.wordpress.org/Function_Reference/get_terms#Examples

    ;)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.