Advertisement
grappler

post meta

Jan 26th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. function responsive_post_meta_data() {
  2.     printf( __( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', 'responsive' ),
  3.     'meta-prep meta-prep-author posted',
  4.     sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="timestamp">%3$s</span></a>',
  5.         get_permalink(),
  6.         esc_attr( get_the_time() ),
  7.         get_the_date()
  8.     ),
  9.     'byline',
  10.     sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  11.         get_author_posts_url( get_the_author_meta( 'ID' ) ),
  12.         sprintf( esc_attr__( 'View all posts by %s', 'responsive' ), get_the_author() ),
  13.         get_the_author()
  14.         )
  15.     );
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement