This commit is contained in:
nguyen dung
2022-02-18 16:43:41 +07:00
commit 39b8cb3612
4470 changed files with 1378320 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
/**
* Portfolio related
*/
if ( get_theme_mod( 'portfolio_related', 1 ) == 0 ) {
return;
}
$terms = get_the_terms( get_the_ID(), 'featured_item_category' );
$term_id = $terms ? current( $terms )->term_id : '';
$height = get_theme_mod( 'portfolio_height' );
$height = $height ? $height : '';
echo do_shortcode( '<div class="portfolio-related">[ux_portfolio image_height="' . $height . '" class="portfolio-related" exclude="' . get_the_ID() . '" cat="' . $term_id . '"]</div>' );