Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1307778
    lexidev
    Participant

    I found the function to add to my child theme to show only the article publication date. Was also able to style it. But have not found the code to add the text: FIRST PUBLISHED: (date). Am sure it’s simple, but couldn’t do it. http://dev.nassauinstitute.org/
    Any suggestions? Thanks.

    #1308094
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Please edit the code and use this instead:

    
    <?php the_date('Y-m-d', '<p class="p-meta">FIRST PUBLISHED:', '</p>'); ?>

    We would loved to know if this has work for you. Thank you.

    #1308971
    lexidev
    Participant

    That works, thank you. I didn’t know where the string should be put.

    #1309381
    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1307778 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>