WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Get a list of all registered taxonomies outside the loop (3 posts)

  1. Ameisenman
    Member
    Posted 1 year ago #

    Hi everybody,
    I tried to get a list of all registered taxonomies (even the custom ones) as an array outside the loop in WordPress 3.4.2 and the new WordPress 3.5 Beta. I tried it with the get_taxonomies() function in the functions.php within my theme.
    All I got when I do a print_r(get_taxonomies()); is this array:
    Array ( [category] => category [post_tag] => post_tag [nav_menu] => nav_menu [link_category] => link_category [post_format] => post_format ).
    There are a bunch of other, custom taxonomies, filled with custom posts but they do not appear. What went wrong? Where is the mistake?

    Any help would be appreciated!
    Thanks in advance
    Ameisenman

  2. zex2911
    Member
    Posted 1 year ago #

    Have you tried this? Scroll down to "Output a list of all public custom taxonomies"

  3. Ameisenman
    Member
    Posted 1 year ago #

    Thanx for the tipp. I allready saw this in the codex but my problem was that I called the function which fetches the taxonomies and terms to early...

Topic Closed

This topic has been closed to new replies.

About this Topic