Keep date in post excerpts but hide from post

Discussion in 'WordPress' started by Taswir, Aug 18, 2012.

  1. #1
    Hi, I want to keep date in post excerpts but not to show in the main post under title. Would anyone kindly help? Is there any plugin for this? (just like shoutmeloud. com)
     
    Taswir, Aug 18, 2012 IP
  2. vrktech

    vrktech Well-Known Member

    Messages:
    449
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Open single.php in your theme folder.

    Find <?php the_date(); ?> - This is the code that displays date in posts

    You can either remove it or just comment it like <?php //the_date(); ?>
     
    vrktech, Aug 18, 2012 IP
  3. ashishkg

    ashishkg Active Member

    Messages:
    233
    Likes Received:
    8
    Best Answers:
    3
    Trophy Points:
    68
    #3
    Try this for Author name, post publish date and comments
    <?php the_author() ?> | <?php the_time('F jS, Y') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
    And it is for excerpt
    <?php the_excerpt(); ?>

    If you want any other help PM me.. or contact me at Skype/Gtalk: ashishkg17
     
    ashishkg, Aug 18, 2012 IP
  4. Taswir

    Taswir Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    Thanks both of you for your kind support. It is now working... :)
     
    Taswir, Aug 18, 2012 IP