removing post author, date & time from all wordpress posts

Discussion in 'PHP' started by mistrymit, Dec 13, 2011.

  1. #1
    hi, i want to remove the author, date and time information thats under the heading of all posts on my wordpress blog. i am using the wp-glide theme from solostream

    any help kindly received

    regards
    m
     
    mistrymit, Dec 13, 2011 IP
  2. dujmovicv

    dujmovicv Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    4
    Trophy Points:
    48
    #2
    Open /path/to/your/blog/wp-content/themes/your_current_theme/index.php find functions the_time('M d Y') and the_author() and remove them. Hope that helps...
     
    dujmovicv, Dec 16, 2011 IP
  3. mistrymit

    mistrymit Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi, i tried looking for that i cant find the functions in there - i do however have a "postinfo.php" when i go into edit theme which displays

    <div class="meta"> <?php the_author_posts_link(); ?> | <?php the_time( get_option( 'date_format' ) ); ?> | <a href="<?php comments_link(); ?>"><?php comments_number(__("0 Comments", "wp-glide"), __("1 Comment", "wp-glide"), __("% Comments", "wp-glide")); ?></a>
    </div>

    if i deleted this then ever post will have removed "by admin, date, comment"
     
    mistrymit, Dec 16, 2011 IP
  4. dujmovicv

    dujmovicv Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    4
    Trophy Points:
    48
    #4
    Try to look for the file I mentioned above in the directory (/path/to/your/blog/wp-content/themes/your_current_theme/index.php). It must be there. I assumed you have permission to access the FTP server to look for the file...
     
    dujmovicv, Dec 18, 2011 IP
    enterprisemind likes this.
  5. mistrymit

    mistrymit Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes i looked at the file u mention but in the end the postinfo.php worked all i did was remove the author and comment bit but i kept the date in there and all is working fine, i think the index.php will only work a majority of time concerning certain wordpress themes, in my case is was the postinfo.php that did it for me, thanks
     
    mistrymit, Dec 18, 2011 IP
  6. enterprisemind

    enterprisemind Member

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #6
    Thanks dujmovicv,

    This older posst saved me from having to write a new one. This is exactly what I was looking for.
     
    enterprisemind, Dec 19, 2012 IP