get_theme_mod( 'ai_automation_related_post_per_page', 3 ), 'orderby' => 'rand', 'post__not_in' => array( get_the_ID() ), ); $ai_automation_number_of_post_columns = get_theme_mod('ai_automation_related_post_per_columns', 3); $ai_automation_col_lg_post_class = 'col-lg-' . (12 / $ai_automation_number_of_post_columns); $ai_automation_related = wp_get_post_terms( get_the_ID(), 'category' ); $ai_automation_ids = array(); foreach( $ai_automation_related as $term ) { $ai_automation_ids[] = $term->term_id; } $ai_automation_post_args['category__in'] = $ai_automation_ids; $ai_automation_related_posts = new WP_Query( $ai_automation_post_args ); if ( $ai_automation_related_posts->have_posts() ) : ?>

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