'; } } add_action( 'wp_head', 'blogstart_pingback_header' ); /** * * Comments lists style markup */ if ( ! function_exists( 'blogstart_comments_list' ) ) : /** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. * * @param object $comment markup of html wordpress comment list. * @param array $args modifying wordpress_comment_list function argument. * @param array $depth modifying child comment. */ function blogstart_comments_list( $comment, $args, $depth ) { if ( 'div' == $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'div-comment'; } ?> < id="comment-">
comment_approved ) : ?>

$depth, 'max_depth' => $args['max_depth'], 'before' => '
', 'after' => '
', ) ) ); ?>
ID ); if ( $categories ) { $category_ids = array(); foreach ( $categories as $individual_category ) { $category_ids[] = $individual_category->term_id; } $args = array( 'category__in' => $category_ids, 'post__not_in' => array( $post->ID ), 'posts_per_page' => 3, // Number of related posts that will be shown. 'ignore_sticky_posts' => 1, 'post_type' => 'post', ); $related_post_query = new wp_query( $args ); if ( $related_post_query->have_posts() ) { echo '

'; esc_html_e( 'Related Post', 'blogstart' ); echo '

'; while ( $related_post_query->have_posts() ) { $related_post_query->the_post(); ?>
'; } // foreach } // if wp_reset_postdata(); } endif; if ( ! function_exists( 'blogstart_single_post_pagination' ) ) { /** * * Blogstart single post pagination functions. */ function blogstart_single_post_pagination() { ?>