Posted By

Jamie on 08/24/10


Tagged

wordpress custom taxonomies


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

maxvee8
athanassiadis
booski
crypticsoft
brry
Dane_Collins


Get WordPress Tags/Categories for a Custom Post Type


 / Published in: PHP
 

URL: http://codex.wordpress.org/Function_Reference/get_the_term_list

Returns an HTML string of taxonomy terms associated with a post and given taxonomy. Terms are linked to their respective term listing pages.\r\n\r\nThis is for when a custom taxonomy is registered for a custom post type.

  1. echo get_the_term_list( $id, $taxonomy, $before, $sep, $after );
  2.  
  3. // typically
  4. echo get_the_term_list( $post->ID, 'video_tag', 'Tags: ', ', ', '.' );

Report this snippet  

You need to login to post a comment.