Advertisement
alchymyth

twenty ten comments numbers in single post on top

Mar 22nd, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.02 KB | None | 0 0
  1. function twentyten_posted_on() {
  2.     printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ).', %4$s',
  3.         'meta-prep meta-prep-author',
  4.         sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
  5.             get_bloginfo('wpurl').'/'.get_the_date('Y/m'),
  6.             esc_attr( get_the_time() ),
  7.             get_the_date()
  8.         ),
  9.         sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  10.             get_author_posts_url( get_the_author_meta( 'ID' ) ),
  11.             sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
  12.             get_the_author()
  13.         ),
  14.         sprintf( '<span class="meta-comment-count"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  15.             '#comments', //use #comments to jump to top of comments; use #respond to jump to comment form
  16.             'jump to comments', //link alt text
  17.             (get_comments_number() != 1) ? get_comments_number().' comments' : get_comments_number().' comment'  // comments number
  18.         )
  19.     );
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement