Viewing 1 replies (of 1 total)
  • Thread Starter Travis

    (@lowburn88)

    Nevermind, after some serious tinkering I finally found it. In my case, the post day wasn’t relevant, so I changed that to display the year.

    In 05.blog.php
    On Line #273
    Change

    date-day

    to

    date-year

    and on Line #277
    Change

    esc_html( get_the_date( ‘j’ ) ),

    to

    esc_html( get_the_date( ‘Y’ ) ),

    You may also want to change the size in style.css.

    .blog-article .entry-meta .date-year

    . Looks good at 16px.
    Cheers

    • This reply was modified 3 years ago by Travis. Reason: fixed code
    • This reply was modified 3 years ago by Travis. Reason: fixed code
Viewing 1 replies (of 1 total)
  • The topic ‘Include year with blog post’ is closed to new replies.