latest works', 'bizes') ); $description = get_theme_mod('portfolio_section_description'); $lightbox_enable = get_theme_mod('portfolio_lightbox_enable', 1); $total_items = get_theme_mod('portfolio_total_count', 6); $top_curve = get_theme_mod('portfolio_top_cruved', 0); $botttom_curve = get_theme_mod('portfolio_bottom_cruved', 0); $classes = array(); if ( 1=== $top_curve ) { $classes[] = 'top-curved'; } else { $classes[] = 'top-no-curved'; } if ( 1=== $botttom_curve ) { $classes[] = 'bottom-curved'; } else { $classes[] = 'bottom-no-curved'; } if(1===$section_enable && class_exists( 'Themereps_Helper' ) ) : ?>

'trh_portfolio', 'post_status' => 'publish', 'posts_per_page' => $total_items ) ); foreach( $portfolio_posts as $portfolio ){ $terms = get_the_terms( $portfolio->ID, 'trh_portfolio_category' ); if( $terms ){ foreach( $terms as $pterm ){ $i++; $portfolio_tax .= $pterm->term_id; $portfolio_tax .= ', '; } } } $term_ids = explode( ', ', $portfolio_tax ); $term_ids = array_diff( array_unique( $term_ids ), array('') ); wp_reset_postdata(); } $args = array( 'taxonomy' => 'trh_portfolio_category', 'orderby' => 'name', 'order' => 'ASC', ); $terms = get_terms( $args ); if( $terms ) { ?>
term_id, $term_ids ) ) echo ''; } ?>
'trh_portfolio', 'post_status' => 'publish', 'posts_per_page' => $total_items ) ); if( taxonomy_exists( 'trh_portfolio_category' ) && $portfolio_qry->have_posts() ){ ?>
have_posts() ){ $portfolio_qry->the_post(); $terms = get_the_terms( get_the_ID(), 'trh_portfolio_category' ); $portfolio_tax = ''; $i = 0; if( $terms ){ foreach( $terms as $pterm ){ $i++; $portfolio_tax .= $pterm->term_id . '_portfolio_taxonomies'; if( count( $terms ) > $i ){ $portfolio_tax .= ' '; } } } ?>
ID, 'trh_portfolio_category' ); if ($terms && ! is_wp_error($terms)) : $term_arr = array(); foreach ($terms as $pterm) { $term_arr[] = $pterm->name; } $all_terms = join( ", ", $term_arr); endif; echo '
' . wp_kses_post($all_terms) . '
'; ?>