Wordpress - Removing Dates from Blog Posts - PHP File to Edit

Discussion in 'WordPress' started by websiteideas, Apr 8, 2006.

  1. #1
    Anyone know the file to edit if you would rather not have the date show up with every post you make?
     
    websiteideas, Apr 8, 2006 IP
  2. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Depends on the template/theme you are using. However the best place to start looking would be wp-content/themes/yourtheme/index.php

    In there you are probably looking for something like this:
    <?php the_time() ?>
    PHP:
     
    tflight, Apr 8, 2006 IP
  3. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #3
    Also depends on WHERE you're talking about, as the posts appear in the index, single post, category and archive pages (as well as search results).

    Like tflight said, you'll have to look for the code he posted in every template file it appears in.
     
    sketch, Apr 8, 2006 IP
  4. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #4
    I believe it's also located in post.php. Does anyone know what other files this the_time function occurs?
     
    websiteideas, May 2, 2006 IP
  5. sketch

    sketch Well-Known Member

    Messages:
    898
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    148
    #5
    It'll depend on your own theme. Not all themes are configured the same. Mine, for example, handles all posts from the same file. You'll simply have to go through each file and search for that piece of code.
     
    sketch, May 2, 2006 IP
  6. ssaud

    ssaud Peon

    Messages:
    122
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you edit single.php, you will be able to remove dates from the posts. That's how i done, but i want to remove dates from the front page as well but so for no luck.
     
    ssaud, Jan 24, 2010 IP
  7. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #7
    u need to edit index, single, achieve, page, category or custom page if have any and remove this tag

     
    Jalpari, Jan 25, 2010 IP
  8. WirelessGuy

    WirelessGuy Active Member

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #8
    I got the trick on this post. Thanks guys.
     
    WirelessGuy, Jun 13, 2011 IP