absint( get_theme_mod( 'adventure_camping_related_posts_count', '3' ) ), 'orderby' => 'rand', 'post__not_in' => array( get_the_ID() ), ); $adventure_camping_tax_terms = wp_get_post_terms( get_the_ID(), 'category' ); $adventure_camping_terms_ids = array(); foreach( $adventure_camping_tax_terms as $tax_term ) { $adventure_camping_terms_ids[] = $tax_term->term_id; } $adventure_camping_post_args['category__in'] = $adventure_camping_terms_ids; if(get_theme_mod('adventure_camping_related_post',true)==1){ $adventure_camping_related_posts = new WP_Query( $adventure_camping_post_args ); if ( $adventure_camping_related_posts->have_posts() ) : ?>

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