Custom Taxonomy - Link Categories (2 posts)

  1. jpomfret
    Posted 5 years ago #

    Hey folks,

    I'm using the following code to output a list of the categories for bookmarks/blogroll/links (whatever it is officially called) and I can't ge the id to display, looking in the admin panel there is a hidden field called link_id but I can't get that to come out in the output? Is there a way to print out a list of fields that can be used when displaying custom taxonomies?

     $terms = get_terms("link_category");
     $count = count($terms);
     if ( $count > 0 ){
         echo "<ul>";
         foreach ( $terms as $term ) {
           echo "<li><a href='?county=" . $term->id . "#testimonials'>" . $term->name . "</a></li>";
         echo "</ul>";

    Any ideas would be great, thank you!

  2. chadvonlind
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic