WordPress.org

Ready to get started?Download WordPress

Forums

Posted on & Posted in Twentyeleven child functions (1 post)

  1. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    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)??

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by Pioneer Valley Web Design
  • This topic is not resolved
  • WordPress version: 3.5.1