Current path: home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/portfolio/templates/single/parts/
?? Go up: /home/webdevt/www/wdp/wp-content/themes/quadric/framework/modules/portfolio/templates/single
<?php if(edgtf_quadric_options()->getOptionValue('portfolio_single_hide_categories') !== 'yes') : ?>
<?php
$categories = wp_get_post_terms(get_the_ID(), 'portfolio-category');
$categy_names = array();
if(is_array($categories) && count($categories)) :
foreach($categories as $category) {
$categy_names[] = $category->name;
}
?>
<div class="edgtf-portfolio-info-item edgtf-portfolio-categories">
<span class="edgtf-portfolio-info-title"><i class="icon-list"></i><?php esc_html_e('Category', 'quadric'); ?></span>
<p>
<?php echo esc_html(implode(', ', $categy_names)); ?>
</p>
</div>
<?php endif; ?>
<?php endif; ?>