How do I remove date from WordPress posts?

9 replies
My subject says it all. I can't remember how ro remove date from WordPress site posts.
#date #posts #remove #wordpress
  • Profile picture of the author writeaway
    There's a date removal plugin you can use from the WP codex. It's free.
    {{ DiscussionBoard.errors[9878728].message }}
    • Profile picture of the author ExpertTips
      If you feel confident in amending template files in the Editor, you can go through each .php file and look for the code that inserts the date, it is normally something like:-

      <?php the_time('j M, Y'); ?>

      You can remove the whole section of code, from "<?php" through to "?>".

      It is usually found in index.php, home.php and single.php. Not all themes are coded the same, so it might be different in your case.

      Note that applying updates to your template in future will undo any changes you have made. A better way to do this is to create a child theme that doesn't get overwritten by updates.

      Another way is to create a CSS rule which hides the date from view, though it would still appear in the HTML source code and would be picked up by search engines.

      Hope that helps.
      {{ DiscussionBoard.errors[9878858].message }}
  • Profile picture of the author ryanbiddulph
    Hi Tim,

    As a blogging guy - and avid reader of bloggers - you can go ahead with this but I'd keep the dates on

    If I'm reading a newspaper without any date on it I've no clue if the news is outdated. Since your blog is a newspaper for your niche, well, you get the picture.

    Onward and upward!

    Ryan
    Signature
    Ryan Biddulph helps you to be a successful blogger with his courses, manuals and blog at Blogging From Paradise
    {{ DiscussionBoard.errors[9878873].message }}
    • Profile picture of the author smedia11
      I found for me the easiest way is to make a css rule that sets the font color the same as the background color (like white on white) or turn it off with the display:none atrritbute, depending on my theme.
      Signature

      Discover How To Start and Build An Online Business, Even If You’re a Complete Beginner --> Download Now

      {{ DiscussionBoard.errors[9879087].message }}
  • Profile picture of the author Alast
    Add this to the CSS file (Appearance > Editor > Stylesheet):

    .posted-on {display: none;}

    This is for Sparkling theme - I assume yours is the same.
    {{ DiscussionBoard.errors[9879094].message }}
  • {{ DiscussionBoard.errors[9879275].message }}
    • Profile picture of the author Michael Shook
      I take the dates off because most of my posts are evergreen. One of the reasons I like the them I use (flexsqueeze) is because there is a date removal toggle on the dashboard.

      You can remove this with CSS or by editing the php code in the theme editor.
      Signature


      {{ DiscussionBoard.errors[9879322].message }}
  • Profile picture of the author Mu
    It depends on the theme if you are using a free one, and want to tell me which I can tell you exactly what to do
    {{ DiscussionBoard.errors[9879321].message }}
  • {{ DiscussionBoard.errors[9880013].message }}

Trending Topics