I've been looking to grab a list of custom taxonomies for a custom post type with the titles, descriptions and tag but have not been able to progress or find anything helpful.


  • I have registered a custom post type 'submissions'
  • I have registered a custom taxonomy 'award-category' that is specifically for the custom post type 'submissions'
  • I'm trying to output a list of title, description and slug for each 'award-category' item (not post, the actual categories).

Any suggestions to point me in the correct direction..


1 Answer 1


Here's how you can output all the custom taxonomies in any template for examination:

    $args = array(
      'public'   => true,
      '_builtin' => false
    $taxes = get_taxonomies( $args, 'objects');

    foreach ($taxes as $key => $tax) {
        $terms = get_terms( $tax->name, array('hide_empty' => false) ); // return empty ones too!
        foreach ($terms as $key => $term) {
            echo 'term ID ' . $term->term_id . ', term name: ' . $term->name . ', description: ' . $term->description . '<br/>';

Please note that depending on how your custom taxonomies were defined your public value may need to be changed to false. Just try both.

Edit: get_terms() will allow you to get all terms for the particular taxonomy.

  • Yes this displays the custom taxonomies registered, however I need the actual categories and descriptions within a taxonomy.
    – Braunson
    Mar 25, 2013 at 18:24
  • @Braunson just edited my answer, check it out. Mar 25, 2013 at 18:45
  • That returns an empty array?
    – Braunson
    Mar 25, 2013 at 18:56
  • @Braunson did you try changing the public value to false as I noted in my original answer? Mar 25, 2013 at 18:59
  • Yes with the public value to false returns nothing.
    – Braunson
    Mar 25, 2013 at 19:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.