Return to Snippet

Revision: 30856
at August 24, 2010 04:57 by Jamie


Initial Code
echo get_the_term_list( $id, $taxonomy, $before, $sep, $after );

// typically
echo get_the_term_list( $post->ID, 'video_tag', 'Tags: ', ', ', '.' );

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

Initial Description
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.

Initial Title
Get WordPress Tags/Categories for a Custom Post Type

Initial Tags
wordpress

Initial Language
PHP