absint( get_theme_mod( 'business_association_related_posts_count', '3' ) ), 'orderby' => 'rand', 'post__not_in' => array( get_the_ID() ), ); $business_association_tax_terms = wp_get_post_terms( get_the_ID(), 'category' ); $business_association_terms_ids = array(); foreach( $business_association_tax_terms as $tax_term ) { $business_association_terms_ids[] = $tax_term->term_id; } $business_association_post_args['category__in'] = $business_association_terms_ids; if(get_theme_mod('business_association_related_post',true)==1){ $business_association_related_posts = new WP_Query( $business_association_post_args ); if ( $business_association_related_posts->have_posts() ) : ?>