Adding separator with wp-get-post-terms
-
Hello,
In order to display the categories and child categories of each post, I am using this script (find there: http://wordpress.org/support/topic/390397?replies=9 ) :
<?php $args=array('orderby' => 'none'); $terms = wp_get_post_terms( $post->ID , 'category', $args); foreach($terms as $term) { echo '<a href="' . esc_attr(get_term_link($term, 'category')) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a> '; } ?>
I want to add properly a separator, any ideas ?
Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Adding separator with wp-get-post-terms’ is closed to new replies.