>
>
Jetpack_Portfolio::CUSTOM_POST_TYPE, 'posts_per_page' => 1, 'post__not_in' => array( get_the_ID() ), 'tax_query' => array( array( 'taxonomy' => 'jetpack-portfolio-type', 'field' => 'id', 'terms' => $terms_id, ), ), ) ); if ( intval( $related_query->found_posts ) > 0 ) : ?>