CodeExplorer get_the_tags example
function get_the_category_rss( $type = null
) { if ( empty( $type ) ) { $type =
get_default_feed();
} $categories =
get_the_category();
$tags =
get_the_tags();
$the_list = '';
$cat_names = array
();
$filter = 'rss';
if ( 'atom' ===
$type ) { $filter = 'raw';
} if ( !
empty( $categories ) ) { foreach ( (array) $categories as $category ) { $cat_names[] =
sanitize_term_field( 'name',
$category->name,
$category->term_id, 'category',
$filter );
}