1180 posts
  • Affiliate Level 5
  • Author Level 5
  • Collector Level 2
  • Exclusive Author
+2 more
mabuc
says

Hello guys,

I need your help again..
How do you add (,) separator on custom post type category, here is my code:

$terms = get_the_terms(  get_the_ID(), 'portfolio_categories' );
foreach ($terms as $term) { 
      echo '<a href="'.get_term_link($term->slug, 'portfolio_categories').'">'.$term->name.'</a>';
}

I read the get_term_link codex but can find solution their..

thanks,
mark

70 posts Talk less do more!
  • Weekly Top Seller
  • Affiliate Level 2
  • Author Level 7
  • Collector Level 3
+3 more
Rifki
says
1180 posts
  • Affiliate Level 5
  • Author Level 5
  • Collector Level 2
  • Exclusive Author
+2 more
mabuc
says
by
by
by
by
by
by