Pin Me

WordPress How to Get Rid of Time Author in Blog Posts

written by: Nicholas•edited by: Simon Hill•updated: 4/29/2010

Trying to figure out how to remove the date, time, or author in WordPress blog posts? The process is very simple and only requires that you remove a bit of code from your WordPress theme. Each theme is a bit different, so the process may vary slightly. However, there is a very easy way to do it.

  • slide 1 of 2

    Removing the Time and Date from WordPress Blog Posts

    WP Logo WordPress How to Get Rid of Time Author in Blog Posts - Because each WordPress theme is coded a bit differently, the process of removing the time and date from single posts may differ slightly. For the most part, you need to find the file single.php in your specific theme folder and look for a piece of code that refers to the time and date. An example of this code may be:

    <p><?php the_time('F j, Y'); ?></p>

    or

    <?php the_time('F jS, Y') ?>

    Alternatively, your theme may not have a single.php file. If not, you need to use the index.php file instead. Find the index.php file in your theme folder, open it up with an HTML editor or within the WordPress built-in editor, and look for the same code.

    <p><?php the_time('F j, Y'); ?></p>

    or

    <?php the_time('F jS, Y') ?>

    Delete this code and make sure that you save changes to the site. From there, the time and date from WordPress blog posts should be gone.

    Now, your WordPress theme may also display the time and date on pages, which are completely different than posts. Not all themes do this, but some do. In order to get rid of time and date on WordPress pages, you need to look for the code above, but this time edit the page.php file.

    <p><?php the_time('F j, Y'); ?></p>

    or

    <?php the_time('F jS, Y') ?>

    Delete the above code from page.php in your WordPress theme folder.

    Alternative option:

    If you are uncomfortable editing the theme files for your particular WordPress blog, you can also try this WordPress plugin, which is designed to remove the date and time. There are more specific directions on how to use the plugin listed on the plugin download page. This plugin is not guaranteed to work for all WordPress themes.

  • slide 2 of 2

    Removing the Author Name for WordPress Blog Posts

    WordPress How to Get Rid of Time Author in Blog Posts - Removing the author name from blog posts, or the 'posted by:' label, is very much the same process as removing the time and date from posts. All you need to do is remove some code from the single.php, page.php, or index.php.

    Open up your WordPress theme folder and look for the file single.php. If there is no single.php, use the index.php file. Open the file for editing and do a search for the word 'author'.

    WordPress should likely turn up a couple of search results. Remove the author .php statement that is relative to the posted by: or written by: section of your blog. The actual code may look something like this:

    <?php include (TEMPLATEPATH . "/author.php"); ?>

    To find out more about removing the author, visit this Wordpress.org page.