• Hello!

    I would like to show the publishing date right under the post title and other information like author, categories, etc. at the bottom of the post.

    Here is an example of a blog that does it that way:
    https://www.codinghorror.com/blog

    How could I achieve this ? The problem is that twentytwelve_entry_meta() is the function that I might need to tweak but the date goes with all the other information.

    Thank you for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ayman

    (@aymanalzarrad)

    Use this <?php $meta = get_post_meta( get_the_ID() ); ?>

    Thread Starter matthewbe

    (@matthewbe)

    Eventually I edited content.php and added the code below where I wanted to display the date:

    <?php
    printf( '<time class="entry-date" datetime="%3$s">%4$s</time>',
    	esc_url( get_permalink() ),
    	esc_attr( get_the_time() ),
    	esc_attr( get_the_date( 'c' ) ),
    	esc_html( get_the_date() )
    );
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Split entry meta: date under post title, other information at the bottom’ is closed to new replies.