Support » Fixing WordPress » Show Custom Taxonomies from ALL Custom-post-types on index.php

  • Resolved ZaddKeefer

    (@zaddkeefer)


    How do I list all custom taxonomies(categories) on index, it seems NOT to show on index.. But only on custom-post-types / archives

    Here is my code for custom post types:

    <?php $terms = get_the_terms( $post->ID , 'genre' );
    foreach ( $terms as $term ) {
    	echo '<a style="margin-left:5px" href="';
    	echo get_term_link( $term );
    	echo '">';
    	echo $term->name;
    	echo '</a>'; } ?>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Custom Taxonomies from ALL Custom-post-types on index.php’ is closed to new replies.