= 2 || $page >= 2 ) { $title = "$title $sep " . sprintf( __( 'Page %s', 'besty' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'besty_wp_title', 10, 2 ); /* * besty Set up post entry meta. * * Meta information for current post: categories, tags, permalink, author, and date. */ function besty_entry_meta() { $besty_year = get_the_time( 'Y'); $besty_month = get_the_time( 'm'); $besty_day = get_the_time( 'd'); $besty_category_list = get_the_category_list() ? '
  • '.__('Category','besty'). " : ".get_the_category_list(', ').'
  • ' : ''; $besty_tag_list = get_the_tag_list() ? '
  • '.__(' Tags ','besty').': ' .get_the_tag_list('',', ').'
  • ' : ''; $besty_date = sprintf( '
  • ', esc_url( get_day_link( $besty_year, $besty_month, $besty_day)), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date('d M, Y') ) ); $besty_author = sprintf( '
  • '.__('Post By','besty').' : %3$s
  • ', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'besty' ), get_the_author() ) ), get_the_author() ); if(comments_open()) { if(get_comments_number()>=1) $besty_comments = '
  • '. __('Comments','besty') .' : '.get_comments_number().'
  • '; else $besty_comments = ''; } else { $besty_comments = ''; } printf('%1$s %2$s %3$s %4$s %5$s', $besty_date, $besty_author, $besty_comments, $besty_tag_list, $besty_category_list ); } ?>