Guest User

Untitled

a guest
Sep 27th, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function get_the_tags() {
  2. $buffy = '';
  3.  
  4. $td_post_tags = get_the_tags($this->post->ID);
  5. if ($td_post_tags) {
  6. $buffy .= '<ul class="td-tags td-post-small-box clearfix">';
  7. $buffy .= '<li><span>' . __td('TAGS') . '</span></li>';
  8.  
  9. foreach ($td_post_tags as $tag) {
  10. $buffy .= '<li><a href="' . get_tag_link($tag->term_id) . '">' . $tag->name . '</a></li>';
  11. }
  12.  
  13. $buffy .= '</ul>';
  14.  
  15. }
  16.  
  17. return $buffy;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment