Date from posts

kappa84

Power Member
Joined
May 19, 2010
Messages
736
Reaction score
321
Hey guys, have a problem I cannot manage to find an answer for..I want to remove the date appearing before the description (in search results) from a Wordpress blog's posts.

Any thoughts?
 
I m not sure but I guess there is an option to remove the date completely? You can also try to search a plugin for that in the wordpress plugin page . I remember there are a couple of those! Good luck!
 
I noticed that I have to edit the code, but have not idea what to change/remove, that was what I was asking. :)
 
And the answer is (maybe someone else will search for this...):

Go one by one to index.php, archive.php and single.php. Search for this line:

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


Replace it with :


<script language="javascript" type="text/javascript">document.write("<?php the_time('F jS, Y') ?>");</script>


It worked for 2 of my blogs. (always backup first!).


Cheers
 
Can't you change that in permalinks just for all the other pages?

Example: /%postname%/ instead of /%year%/%monthnum%/%postname%/
 
You can easily change it in the admin panel. PM me for more help!
 
Can't you change that in permalinks just for all the other pages?

Example: /%postname%/ instead of /%year%/%monthnum%/%postname%/

I had that permalink already, problem was that in SERPS before the description the date was appearing, which I hated. Now it's gone..
 
Follow-up question. Can you make the date dynamic, so it can be changed?

e.g. All content appears to be no more than 30 days old

Can this be done in a way that is visible to a viewer, but not to googlebot?
 
Back
Top