decorating the Posted on Function
-
I am trying to decorate the posted on line in the twentyten theme. I know where the code is taking place (bwlow), but when I try to add div tags around the code to style in my style sheet the functionality doesn’t display correctly.
function twentyten_posted_on() { printf( __( '<span class="%1$s">Posted date</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ), 'meta-prep meta-prep-author', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), sprintf( '<span class="author vcard"><a href="%1$s" title="%2$s">%3$s</a></span>', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), get_the_author() ) ); } endif;
[Please post code snippets between backticks or use the code button.]
Is there a better way?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘decorating the Posted on Function’ is closed to new replies.