Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 08-24-2009, 05:38 PM   #1
Senior Warrior Member
War Room Member
 
Pat Jackson's Avatar
 
Join Date: Jan 2009
Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
Default Delete Date/Time In Wordpress

Hey guys,

Was just wondering if anyone knew how to delete the time/date from all of your posts on wordpress by default?

Just looking at a php file makes me nervous so I thought I would ask here to find out exactly what I need to do.

Many thanks!
Pat Jackson is offline   Reply With Quote
Old 08-24-2009, 05:53 PM   #2
Godson of The Godfather
War Room Member
 
Jared Alberghini's Avatar
 
Join Date: Nov 2004
Location: The NorthEast Kingdom - Vermont, USA
Posts: 2,163
Blog Entries: 25
Thanks: 786
Thanked 1,065 Times in 441 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Delete Date/Time In Wordpress

There are usually just 2 files you need to edit in your theme directory: wp-content/themes/Your Theme Name/

index.php
single.php

(some themes have a separate widget page: home.php )

Look for the following code in those files and delete it:

HTML Code:
<?php the_time('M.d, Y') ?>
or

HTML Code:
<php the_date('M.d, Y') ?>
depending on how your theme displays the time, or date...

Jared


TelekineticMarketing.com helps you connect with other IM Entrepreneurs like never before.

Be FIRST To Join TM For FREE -> Private Mastermind Groups for IM Entrepreneurs


Jared Alberghini is offline   Reply With Quote
Old 08-24-2009, 05:55 PM   #3
JohnLagoudakis.com
War Room Member
 
johnlagoudakis's Avatar
 
Join Date: Jul 2009
Location: Brisbane, Australia
Posts: 354
Blog Entries: 8
Thanks: 33
Thanked 48 Times in 36 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Delete Date/Time In Wordpress

Hi Pat,

Found the following suggestion doing a search on Google:

How To Remove Time/Date Details From Posts In Wordpress Blog? WordPress KnowledgeBase | BestWPThemez.Com

*** FREE Webinar Reveals How I Make a Full-Time Income Online! ***
(see how Google stabbed me in the back)

John Lagoudakis Blog

Top 100 Clickbank Affiliate
johnlagoudakis is offline   Reply With Quote
Old 08-24-2009, 05:58 PM   #4
Senior Warrior Member
War Room Member
 
Pat Jackson's Avatar
 
Join Date: Jan 2009
Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
Default Re: Delete Date/Time In Wordpress

Hey Jared,

I'm using "Flexibility" theme.

In the index.php file there wasn't the exact code you posted, however, there is this;

Code:
<div class="postMeta"> <div class="postdate"><?php the_time('l, F jS, Y') ?> at 
<?php the_time() ?>
Is it safe to assume that I just delete any instance of;

Code:
<?php the_time() ?>
Pat Jackson is offline   Reply With Quote
Old 08-24-2009, 06:05 PM   #5
Godson of The Godfather
War Room Member
 
Jared Alberghini's Avatar
 
Join Date: Nov 2004
Location: The NorthEast Kingdom - Vermont, USA
Posts: 2,163
Blog Entries: 25
Thanks: 786
Thanked 1,065 Times in 441 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Default Re: Delete Date/Time In Wordpress

Yea Pat, you've got the idea...

Just make sure you make a backup first...

and the index.php file displays your main page content, whereas the single.php displays the post by itself if you click on the title, or the 'read more link', so make sure you edit your single.php page also.

Jared

P.S. We should probably get this post moved to either of these sub-forums:
http://www.warriorforum.com/website-design/
http://www.warriorforum.com/programming-talk/


TelekineticMarketing.com helps you connect with other IM Entrepreneurs like never before.

Be FIRST To Join TM For FREE -> Private Mastermind Groups for IM Entrepreneurs


Jared Alberghini is offline   Reply With Quote
Old 08-24-2009, 06:14 PM   #6
Senior Warrior Member
War Room Member
 
Pat Jackson's Avatar
 
Join Date: Jan 2009
Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
Default Re: Delete Date/Time In Wordpress

Ok, great.

It seems to be working so fingers crossed I didn't stuff anything up.

Thanks, again!
Pat Jackson is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
date or time, delete, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 05:50 PM.