![]() | | ||||||||
| | #1 |
| Senior Warrior Member War Room Member Join Date: Jan 2009 Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
|
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! |
| | |
| | #2 |
| Godson of The Godfather War Room Member 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
|
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') ?> HTML Code: <php the_date('M.d, Y') ?> 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 | |
| | |
| | #3 |
| JohnLagoudakis.com War Room Member Join Date: Jul 2009 Location: Brisbane, Australia
Posts: 354
Blog Entries: 8 Thanks: 33
Thanked 48 Times in 36 Posts
|
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 | |
| | |
| | #4 |
| Senior Warrior Member War Room Member Join Date: Jan 2009 Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
|
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() ?> Code: <?php the_time() ?> |
| | |
| | #5 |
| Godson of The Godfather War Room Member 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
|
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 | |
| | |
| | #6 |
| Senior Warrior Member War Room Member Join Date: Jan 2009 Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
|
Ok, great. It seems to be working so fingers crossed I didn't stuff anything up. Thanks, again! |
| | |
![]() |
|
| Tags |
| date or time, delete, wordpress |
| Thread Tools | |
| |
![]() |