daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Dec 12th, 2017 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wp_set_post_tags($this->id, $_POST['tags']);
  2.    
  3. $tags = get_the_tags(get_the_ID());
  4. if(count($tags) > 0){
  5.     foreach($tags as $tag){
  6.        echo $tag->name."(".$tag->count.");
  7.     }
  8. }
RAW Paste Data
Top