Advertisement
Tech

WordPress How to Get Rid of Time Author in Blog Posts

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.

By Nicholas
Desk Tech
Reading time 3 min read
Word count 464
Web development Internet Blog tips
WordPress How to Get Rid of Time Author in Blog Posts
Advertisement
Quick Take

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.

On this page

Removing the Time and Date from WordPress Blog Posts

**

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:

Advertisement

or

Advertisement

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.

Advertisement

or

Advertisement

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.

Advertisement

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.

Advertisement

or

Advertisement

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

Alternative option:

Advertisement

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.

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.

Advertisement

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:

Advertisement

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

Advertisement
Keep Exploring

More from Tech

Filed under
Web development Internet
More topics
Blog tips
Advertisement