Support » Theme: Longform » Dates to posts

  • Dubsy


    I know this was discussed in a previous topic but I’m having issues with the provided solution. I follow the idea of that topic (I have a child theme already created), and after copying the file to the child theme and editing it, I was still unable to make the date appear at the top of the post.

    Longform have the file template-tags.php saved in a sub folder inc. So, I recreated the same structure in my child theme and saved template-tags.php into it.

    I then followed the instruction to locate the text: // Set up and print post meta information which stated to replace the line below with this code:

    printf( '<span class="byline">' . date('d-m-Y', strtotime($post->post_date)) .'&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;<span class="author vcard">BY <a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>',

    But it doesn’t appear to have worked. Any suggestions?


    The page I need help with: [log in to see the link]

  • The topic ‘Dates to posts’ is closed to new replies.