WordPress.org

Ready to get started?Download WordPress

Forums

How to get all terms from a custom taxonomy (1 post)

  1. gplana
    Member
    Posted 2 years ago #

    Hi.

    I have created a custom taxonomy called forum_category and I created some entries in there by using wp-admin.

    When executing this code:

    $terms = get_terms('forum_category');
    print_r($terms);

    it prints an empty array when I expected to get all entries from this taxonomy. Can someone tell me what I'm doing wrong ?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic