'.esc_html( get_the_author() ).'', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) );
echo wp_kses_post( $author_wrap );
}
endif;
//post date
if( ! function_exists( 'business_land_post_date' ) ):
function business_land_post_date(){
$archive_year = get_the_time('Y');
$archive_month = get_the_time('m');
$archive_day = get_the_time('d');
$time_link = get_day_link( $archive_year, $archive_month, $archive_day);
$date_wrap = sprintf('%2$s', esc_url( $time_link ), esc_html( get_the_date() ) );
echo wp_kses_post( $date_wrap );
}
endif;
//post commnet
if( ! function_exists( 'business_land_post_comment' ) ):
function business_land_post_comment(){
$cmt_link = get_comments_link( get_the_ID() );
$num_comments = get_comments_number();
if ( $num_comments == 0 ) {
$comments = __( '0 Comments', 'business-land' );
} elseif ( $num_comments > 1 ) {
$comments = $num_comments . __( ' Comments', 'business-land' );
} else {
$comments = __('1 Comment', 'business-land' );
}
echo "".esc_html( $comments )."";
}
endif;
//post categories
if( ! function_exists( 'business_land_post_categories' ) ):
function business_land_post_categories(){
$categories = get_the_category( get_the_ID() );
$separator = ', ';
if ( ! empty( $categories ) ) {
$output = '';
foreach( $categories as $category ) {
/* translators: %s: category name */
$output .= ''. esc_html( $category->name ) .''.$separator;
}
echo wp_kses_post( trim( $output, $separator ) );
}
}
endif;
//post tags
if( ! function_exists( 'business_land_post_tags' ) ):
function business_land_post_tags(){
$tags = get_the_tag_list( sprintf( '%s:', __( 'Tags', 'business-land' ) ), '' );
echo wp_kses_post( $tags );
}
endif;