How to list tags/categories from custom taxonomies?
-
Hey,
I’ve got a couple of custom taxonomies on my blog and registering them in the functions.php worked just fine, I can now add infos about author, title, series and rating to all my book reviews. But now I want a list of all posts on a overview page and I would like the list to use the info I added to the posts’ by using custom taxonomies so the single elements in the list look like this:
Author – Title (Series) Rating
But somehow I’m unable to get the stuff I added to the custom taxonomies listed…
I tried this but it doesn’t work:<?php query_posts('cat=296&posts_per_page=-1'); while (have_posts()) : the_post();?> <a href="<?php the_permalink(); ?>"> <?php get_the_term_list( $post->ID, 'author', '', ', ', ' - ' ) ?><?php get_the_term_list( $post->ID, 'title', '', '', ' ' ) ?><?php get_the_term_list( $post->ID, 'series', '(', '', ')' ) ?><?php get_the_term_list( $post->ID, 'rating', ' ', ''')' ) ?> </a><br /> <?php endwhile;?>
I’m perfectly clueless and without even the most basic knowledge about coding so any help would be welcome 🙂
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to list tags/categories from custom taxonomies?’ is closed to new replies.