Michael,
This is what I used in my Twenty Eleven Child Theme:
if ( ! function_exists( 'twentyeleven_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
* Create your own twentyeleven_posted_on to override in a child theme
*
* @since Twenty Eleven 1.0
*/
function twentyeleven_posted_on() {
if ( in_category( array('Political Cartoons', 'Political Statements' ) )) {
// Custom:
// Note: Remove (printf) code from between quotes, to make blank; otherwise:
// If the category is one of the above, write out Post date (ONLY).
printf( __( '<span class="sep">Posted </span><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></span>', 'twentyeleven' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
}
elseif ( in_category( array('Scripture', 'Biblical', 'Biblical Resources', 'Quotes', 'Holidays/Anniversaries', 'Article', 'Political Literature', 'Political Terms') )) {
// If the category is one of the above, use Posted by.
printf( __( '<span class="sep">Posted by<span class="by-author"></span> <span class="author vcard"><a href="%5$s" title="%6$s" rel="author">%7$s</a></span><span class="sep"> | </span><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></span>', 'twentyeleven' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
get_the_author()
);
}
else {
// All other categories, use Written by
printf( __( '<span class="sep">Written by<span class="by-author"></span> <span class="author vcard"><a href="%5$s" title="%6$s" rel="author">%7$s</a></span><span class="sep"> | Posted </span><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></span>', 'twentyeleven' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
get_the_author()
);
}
}
endif;
Which I would like to replicate in Twenty Twelve.