post_type == ‘post’) {
if ($dp_options[‘show_categories’]) {
foreach(explode(‘-‘, $dp_options[‘show_categories’]) as $cat) {
if ($cat == 1) {
$terms = get_the_terms($post->ID, ‘category’);
if ($terms && !is_wp_error($terms)) {
$term = array_shift($terms);
$metas[] = ‘
‘;
}
} elseif ($post->post_type == $dp_options[‘introduce_slug’]) {
if ($dp_options[‘show_introduce_categories’]) {
foreach(explode(‘-‘, $dp_options[‘show_introduce_categories’]) as $cat) {
if (!empty($dp_options[‘use_introduce_category’.$cat])) {
$terms = get_the_terms($post->ID, $dp_options[‘introduce_category’.$cat.’_slug’]);
if ($terms && !is_wp_error($terms)) {
$term = array_shift($terms);
$metas[] = ‘
‘;
}
} elseif ($post->post_type == $dp_options[‘news_slug’] && $dp_options[‘show_date_news’]) {
$metas[] = ‘
‘;
}
if ($metas) {
echo ‘
‘;
}
?>