get_category example

if ( empty($id) )
        return '';

    $cats = wp_get_link_cats($id);

    if ( empty($cats) || ! is_array($cats) )
        return '';

    $cat_id = (int) $cats[0]; // Take the first cat.
    $cat = get_category($cat_id);
    return $cat->name;
}

/** * Print RSS comment feed link. * * @since 1.0.1 * @deprecated 2.5.0 Use post_comments_feed_link() * @see post_comments_feed_link() * * @param string $link_text */
Home | Imprint | This part of the site doesn't use cookies.