Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'theme_post_meta_data' ) ) :
- /**
- * This function prints post meta data.
- *
- * Adopted from Twenty Eleven
- */
- function thme_post_meta_data() {
- printf( __( '%1$sPosted on %2$s by %3$s', 'theme' ),
- esc_attr( '<span class="posted">'),
- sprintf( '</span><a href="%1$s" title="%2$s" rel="bookmark"><span class="timestamp" "%3$s">%4$s</span></a><span class="byline">',
- esc_url( get_permalink() ),
- esc_attr( get_the_time() ),
- esc_attr( get_the_date( 'c' ) ),
- esc_attr( get_the_date() ),
- ),
- esc_attr( sprintf('<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span></span>' ,
- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
- esc_attr( sprintf( __( 'View all posts by %s', 'theme' ), get_the_author() ) ),
- get_the_author() , ),
- ),
- );
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement