'; } } add_action( 'wp_head', 'blogstart_pingback_header' ); /** * blogstart functions and definitions * * @package blogstart */ if (! function_exists('blogstart_popular_post')) { /** * blogstart functions and definitions * * @param string $postid For Catching Post ID. * @package blogstart */ function blogstart_popular_post($postid) { $metakey = 'blogstart_post_views'; $views = get_post_meta($postid, $metakey, true); $count = (empty($views) ? 0 : $views); $views++; update_post_meta($postid, $metakey, $count); } } /** * Author Social Profile */ 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')) { function blogstart_post_author_details(){ ?>

< id="comment-">
comment_approved == '0' ) : ?>

$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 $post = $original_post; wp_reset_postdata(); } endif; if (! function_exists('blogstart_single_post_pagination')) { function blogstart_single_post_pagination(){ ?>
' ); echo apply_filters( 'footer_credits', $text ); } endif;