SHARE
TWEET

Dominykas

a guest Dec 28th, 2016 158 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top