' %title', 'next_text' => ' %title', ) ); if ( is_singular( 'post' ) ) { $cat_content_id = get_the_category( $post->ID )[0]->term_id; $args = array( 'cat' => $cat_content_id, 'posts_per_page' => absint( 3 ), 'post__not_in' => array( $post->ID ), 'orderby' => 'rand', ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : $related_title = get_theme_mod( 'blog_content_related_posts_title', __( 'Related Posts', 'blog-content' ) ); ?>