'; } } add_action( 'wp_head', 'blogstart_pingback_header' ); /** * Author Social Profile * * @param args $usermeta for getting customizer data. */ function blogstart_author_social_profile( $usermeta ) { $usermeta['facebook'] = __( 'Facebook', 'blogstart' ); $usermeta['twitter'] = __( 'Twitter', 'blogstart' ); $usermeta['linkedin'] = __( 'Linkedin', 'blogstart' ); $usermeta['googleplus'] = __( 'Google Plus', 'blogstart' ); return $usermeta; } add_filter( 'user_contactmethods', 'blogstart_author_social_profile' ); if ( ! function_exists( 'blogstart_post_author_details' ) ) { /** * * Author details function. */ function blogstart_post_author_details() { ?>

< 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() { ?>