absint( get_theme_mod( 'vcard_cv_resume_related_posts_count', '3' ) ), 'orderby' => 'rand', 'post__not_in' => array( get_the_ID() ), ); $vcard_cv_resume_tax_terms = wp_get_post_terms( get_the_ID(), 'category' ); $vcard_cv_resume_terms_ids = array(); foreach( $vcard_cv_resume_tax_terms as $tax_term ) { $vcard_cv_resume_terms_ids[] = $tax_term->term_id; } $vcard_cv_resume_post_args['category__in'] = $vcard_cv_resume_terms_ids; if(get_theme_mod('vcard_cv_resume_related_post',true)==1){ $vcard_cv_resume_related_posts = new WP_Query( $vcard_cv_resume_post_args ); if ( $vcard_cv_resume_related_posts->have_posts() ) : ?>

have_posts() ) : $vcard_cv_resume_related_posts->the_post(); ?>