• I’m trying to hide the date of the post on the site (as seen by viewers).
    I opened the page_blog.php file and deleted the following:
    <div class=”date”>
    <p><?php the_time(‘F j, Y’); ?></p>
    </div>
    This didn’t change how the post was viewed. It still contained the posting date. Am I looking in the wrong file? Where else should I be looking for this code?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • wp-content/themes/YOURTHEME/index.php
    wp-content/themes/YOURTHEME/single.php
    wp-content/themes/YOURTHEME/page.php
    wp-content/themes/YOURTHEME/archive(s).php

    You will need to remove the instances in each of those files..

    Different template files handle different areas, you’ll need to adjust each one..

    Thread Starter hoosierstu

    (@hoosierstu)

    Thanks!

    After I remove the code, will it still be able to correctly put the recent posts in order?

    Yes…

    the_time only displays the time of the post, it won’t effect the sort order.

    Thread Starter hoosierstu

    (@hoosierstu)

    I have no single.php.
    I’ll try the others and see what happens.

    Thread Starter hoosierstu

    (@hoosierstu)

    That works, thanks!

    You’re welcome… ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to hide a Post’s Date’ is closed to new replies.