Posted on & Posted in Twentyeleven child functions
-
I have this snippet in my functions.php (Twentyeleven child theme) which works well to:
A Not reveal the author’s UN in HTML.
B) Correct the pubdate validation issue (at W3).<?php function twentyeleven_posted_on() { printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'twentyeleven' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } ?>
Above for the ‘Posted on‘ post headers…
Now I need to do the same for the footer links ‘Posted in‘…
Anyone have a tested snippet for ‘Posted in‘ (the issue is pupdate)??
- The topic ‘Posted on & Posted in Twentyeleven child functions’ is closed to new replies.