function get_tag_name($id) {
  $id = (int) $id;
  global $wpdb;
  $nombre = $wpdb->get_var("SELECT name FROM $wpdb->terms WHERE term_id='$id'");
  return $nombre;
}

 

Last modified: 25 Enero 2016

Author

Comments

Write a Reply or Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.