Advertisement
Guest User

Dominykas

a guest
Dec 28th, 2016
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.15 KB | None | 0 0
  1. $tags = wp_get_post_tags($post->ID);
  2. foreach($tags as $tag){
  3.     $tags_array[] = $tag->name;
  4. }
  5. $comma_separated_tags = implode( ', ' , $tags_array);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement