', ', ', '');
if (!is_wp_error($term_list) && $term_list) {
echo '
' . $term_list . '';
} else {
if ('post' == get_post_type($post->ID) && rehub_option('exclude_cat_meta') != 1) {
$category = get_the_category($post->ID);
if ($category) {
if (class_exists('WPSEO_Primary_Term')) {
$wpseo_primary_term = new WPSEO_Primary_Term('category', $post->ID);
$wpseo_primary_term = $wpseo_primary_term->get_primary_term();
//$termyoast = get_term( $wpseo_primary_term );
if (!is_numeric($wpseo_primary_term)) {
$first_cat = $category[0]->term_id;
} else {
$first_cat = $wpseo_primary_term;
}
} else {
$first_cat = $category[0]->term_id;
}
meta_small(false, $first_cat, false, false);
}
}
}
?>
ID) && rehub_option('exclude_cat_meta') != 1) : ?>
ID); ?>
ID);
$wpseo_primary_term = $wpseo_primary_term->get_primary_term();
//$termyoast = get_term( $wpseo_primary_term );
if (!is_numeric($wpseo_primary_term)) {
$first_cat = $category[0]->term_id;
} else {
$first_cat = $wpseo_primary_term;
}
} else {
$first_cat = $category[0]->term_id;
}
meta_small(false, $first_cat, false, false);
} ?>