Date from posts

Discussion in 'Blogging' started by kappa84, Jan 20, 2011.

  1. kappa84

    kappa84 Power Member

    Joined:
    May 19, 2010
    Messages:
    736
    Likes Received:
    337
    Location:
    Bath, UK
    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?
     
  2. theguruland

    theguruland Junior Member

    Joined:
    Feb 29, 2008
    Messages:
    184
    Likes Received:
    12
    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!
     
  3. Marketing Jhonny

    Marketing Jhonny Registered Member

    Joined:
    Dec 10, 2010
    Messages:
    87
    Likes Received:
    27
    Occupation:
    Im an SEO Specialist
    Location:
    506 | 1337 Marketing!
    The only way to remove something them wise is editing the theme php files...
     
  4. kappa84

    kappa84 Power Member

    Joined:
    May 19, 2010
    Messages:
    736
    Likes Received:
    337
    Location:
    Bath, UK
    I noticed that I have to edit the code, but have not idea what to change/remove, that was what I was asking. :)
     
  5. kappa84

    kappa84 Power Member

    Joined:
    May 19, 2010
    Messages:
    736
    Likes Received:
    337
    Location:
    Bath, UK
    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
     
  6. BFHoodn!nja

    BFHoodn!nja Regular Member

    Joined:
    Jun 18, 2011
    Messages:
    246
    Likes Received:
    89
    Occupation:
    Photog / IM / SEO
    Location:
    Winnipeg
    Can't you change that in permalinks just for all the other pages?

    Example: /%postname%/ instead of /%year%/%monthnum%/%postname%/
     
  7. KraftyKyle

    KraftyKyle Jr. Executive VIP Jr. VIP

    Joined:
    Aug 13, 2008
    Messages:
    2,381
    Likes Received:
    5,366
    Gender:
    Male
    Location:
    Scraping Instagram
    Home Page:
    You can easily change it in the admin panel. PM me for more help!
     
  8. kappa84

    kappa84 Power Member

    Joined:
    May 19, 2010
    Messages:
    736
    Likes Received:
    337
    Location:
    Bath, UK
    I had that permalink already, problem was that in SERPS before the description the date was appearing, which I hated. Now it's gone..
     
  9. shadowcat

    shadowcat Elite Member

    Joined:
    Jan 10, 2011
    Messages:
    1,537
    Likes Received:
    1,001
    Occupation:
    Graphic and Web Designer | SEO and SMM Consultant
    Location:
    Titan Trios
    Keep the dates it helps in better indexing
     
    • Thanks Thanks x 1
  10. rogerebert

    rogerebert Registered Member

    Joined:
    Feb 11, 2010
    Messages:
    79
    Likes Received:
    14
    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?