1175 posts
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
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

59 posts Talk less do more!
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 50 000 and 100 000 dollars
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
  • Indonesia
rifki says
1175 posts
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
mabuc says
by
by
by
by
by
by