'' . esc_html__( 'Previous:', 'blog-talk' ) . ' %title', 'next_text' => '' . esc_html__( 'Next:', 'blog-talk' ) . ' %title', ) ); if ( is_singular( 'post' ) && get_theme_mod( 'blog_talk_enable_related_post_section', true ) ) { $cat_content_id = get_the_category( $post->ID )[0]->term_id; $args = array( 'cat' => $cat_content_id, 'posts_per_page' => 3, 'post__not_in' => array( $post->ID ), 'orderby' => 'rand', ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : $related_title = get_theme_mod( 'blog_talk_related_posts_title', __( 'Related Posts', 'blog-talk' ) ); ?>

have_posts() ) : $query->the_post(); ?>
>
', '' ); ?>