Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $tags = wp_get_post_tags($post->ID);
- foreach($tags as $tag){
- $tags_array[] = $tag->name;
- }
- $comma_separated_tags = implode( ', ' , $tags_array);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement