Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Varför du ej bör remove datum från dina blogginlägg i WordPress

När jag startade WPBeginner 2009 tog jag ett beslut att ej inkludera datum i några av mina blogginlägg. Jag gjorde det för att jag trodde att jag var smartare än resten. Min teori var att WPBeginner ej är en blogg. Det är en resource som gillar WordPress codex eller Wikipedia som inte heller har datum på sina artiklar. Dessutom var min tanke att om jag tog bort datumen från blogginlägg skulle det lura användarna att tro att mitt content är vintergrönt. Oj, vad fel jag hade. Under de senaste månaderna har jag noterat en trend att fler och fler internetmarknadsförare och självutnämnda ”sökmotorsoptimeringsexperter” råder sina användare att ta bort datum från sina blogginlägg i WordPress. I den här artikeln kommer jag att ge djupgående detaljer om varför jag valde att inte inkludera datum till en början och vad som fick mig att ändra mig senare. Jag kommer också att täcka om/vilka är sökmotorsoptimeringarna av att ha datum på dina blogginlägg (post-penguin och panda). Slutligen är mitt mål att efter att ha läst hela detta post skulle du förstå att ditt problem inte är med datum, snarare är det med publicerat datum. Jag har hittat en lösning som skulle vänligen du, dina användare och search engines.

Skälen bakom att ta bort eller ej inkludera datum

När jag först startade WPBeginner 2009 såg jag det alltid som en resource site som liknar WordPress Codex eller Wikipedia. Om du har använt någon av de två, så vet du att de inte har time stamp eller datum på sina entries. You’re probably wondering what could be the possible advantage of that? Jo, som användare har vi en built-in fördom mot outdated content. Så fort vi ser ett datum är vi programmerade att klassificera det i en av de två kategorierna: outdated OR relevant. I teorin betyder det inte att innehållet inte är relevant bara för att det är gammalt, men användarna gör det antagandet. Som bloggare var den tanken störande för mig eftersom jag ville att alla skulle läsa mitt content. Så vad gjorde jag? Jag bestämde mig för att ej ange datum i mina blogginlägg. Min tanke var att folk läser Wikipedia även när det har relevant information som kanske eller ej är uppdaterad. Eftersom användaren aldrig vet det ursprungliga publicerade datumet ger de det en fördel av tvivel.

Wrong Way

Under de senaste månaderna har jag sett många internetmarknadsförare och sökmotorsoptimeringar som ger ut sin dom mot att ha datum på blogginlägg. Var och en har sina egna skäl, men alla följer samma buzz-ord vintergröna content. När populära bloggar som CopyBlogger bestämmer sig för att ta bort datum, är det ett exempel för andra att följa.

Jag har redan gått den här vägen, och jag kan berätta varför det är en fel väg.

Varför jag aldrig skulle ta bort datum igen

Jag gör inte samma misstag två gånger. Att ej ha dejter kl. 1 var ett misstag, och jag tror inte att jag skulle upprepa det misstaget. Min förhoppning är att du efter att ha läst detta skulle göra detsamma. När jag startade WPBeginner var min främsta prioritet att hjälpa användare med mina WordPress tutorials. Likes andra bloggare, jag ville tro att mitt content var vintergrönt. Men i verkligheten är det inte det. Även om jag går tillbaka och uppdaterar artiklar är det helt enkelt inte möjligt att hålla allt uppdaterat hela tiden.

I början hade jag inga issues eller klagomål angående datumet. Men 6 månader på vägen började jag få email från användare som klagade på en äldre artikel. Först skulle jag helt enkelt gå och updating artikeln direkt. Men när webbplatsen växte verkade updating av alla artiklar bli mer och mer osannolikt. Det kom till en punkt där jag regelbundet fick flera email, tweets eller Facebook-meddelanden om datumen. Det tog mig ett och ett halvt år att ge upp min envishet och lägga till datumen i posten.

Hindsight

I efterhand insåg jag hur stor björntjänst jag gjorde mina användare och den större WordPress-communityn genom att ej ha datum på webbplatsen. Jag ville hjälpa WordPress-nybörjare, men ibland slutade det med att jag missledde dem eller orsakade mer förvirring eftersom de inte visste att de tittade på en äldre screenshot eller tutorial.

Med tiden har jag också lärt mig att mycket få posts är vintergröna. Du lär dig alltid något nytt och dina metoder förändras. Det träffar dig när någon citerar dina egna ord vid en session där du talar och motsäger ett äldre inlägg. Gissa vad, om den posten inte har ett datum på den, då kan du inte säga att den artikeln är gammal.

Slutsatsen är att om du verkligen värdesätter dina läsare, skulle du inte ta bort datum. Bloggar är enligt själva definitionen avsedda att vara outdated. Om du har datum eller ej, visar du fortfarande dina poster i en omvänd kronologisk order. Om du verkligen tror att ditt content är vintergrönt, varför ändrar du inte den ordern och visar posterna i en slumpmässig ordning (japp nu är det en utmaning).

Vänta, hur kan jag vara nöjd med att veta att mina blogginlägg är outdated? Straffar inte Google outdated content? Går jag miste om läsare på grund av användarnas fördomar mot äldre inlägg? Jo, jag är nöjd eftersom jag har hittat ett alternativt sätt att displayed datum som håller mig och mina Läsare nöjda. Jag antar att det håller search engines glada också.

New Dates Metod, Läsare, och Search Engines

Jag insåg att mitt problem inte var med datum. Det var med funktionen ”publicerat datum” eftersom det inte exakt återspeglade det arbete jag lade ner på webbplatsen. Funktionen för utvalt datum är relevant för böcker eftersom bokförfattare inte går och uppdaterar originalboken. De kommer ut med version 2 istället. Som bloggare går jag personligen tillbaka för att uppdatera ett eller två inlägg varje dag på WPBeginner men det inlägget visar fortfarande publicerat på äldre datum. Lyckligtvis har WordPress också möjlighet att visa ” last updated date”, vilket enligt min mening var den lösning jag behövde alltsedan dess.

Working Time

I WPBeginners post mete-data har vi beslutat att ersätta publicerat datum med det senast uppdaterade datumet. Koden gillar att se ut så här:

Last updated on <time datetime="<?php the_modified_time('Y-m-d'); ?>"><?php the_modified_time('F jS, Y'); ?></time>

Funktionen för ändrad tid i WordPress kontrollerar den senaste gången du gick och uppdaterade posten. Om den sista gången du uppdaterade posten var när du publicerade den, visar den det datum du publicerade det på. Men om du gick tillbaka för att updating den posten sex månader senare, då kommer det att visa det senast uppdaterade datumet.

Jag tror att i dagens värld är det senaste uppdaterade datumet mer värdefullt för läsarna än det faktiska publicerade datumet. Det publicerade datumet är irrelevant när du har gått vidare och skrivit om hela artikeln.

När det gäller search engines, om du tror att du kan lura dem genom att remove datum från din design, då är du väldigt naiv. Din sitemap för WordPress innehåller det senaste datumet då varje artikel ändrades, och chansen är stor att du har submittat din sitemap till Googles Webmaster Tools. Jag skriver personligen för mina användare, och jag värdesätter deras tankar mycket mer än någon search engine. Koden ovan följer dock korrekt schemamarkering som berättar för search engines den senast uppdaterade tiden för posten. Ja, det betyder att Google kommer att visa det senast uppdaterade datumet bredvid din post snarare än det ursprungliga publicerade datumet.

Slutligen tillfredsställer den utvalda funktionen mig som bloggare. Jag håller mig själv till en ganska hög standard, och jag vet att mina användare inte låter mig glida heller (Thank you alla för att vara hårda mot mig). Även om alla bloggar är tänkta att vara outdated, har WPBeginners publik inte behörighet till det. Vi får regelbundna rapporter om outdated artiklar, och vi gör vårt bästa för att update dem så snart vi kan. Om du ser en outdated artikel, vänligen låt oss veta genom att tweeta oss @wpbeginner eller genom att använda kontaktformuläret.

Hoppas denna lösning håller alla nöjda.

Everyone is Happy

Idag ser jag fortfarande WPBeginner som mer än en blogg. Jag ser den som den bästa WordPress resource site, och genom att lägga till datum tror jag att jag har gjort den ännu bättre. Att ha tidsrelevans gör oss inte till en dålig resource snarare gör det oss till en mer hjälpsam resource site. Min förhoppning är att jag med min åsikt har övertygat dig om att inte ta bort datum från dina blogginlägg i WordPress. Jag är alltid öppen för återkoppling och critical. Vänligen dela med dig av dina tankar om detta ämne i kommentarerna under.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

183 kommentarerLämna ett svar

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

    • WPBeginner Support says

      You should be able to use the same code if you are comfortable with editing your theme’s files.

      Administratör

      • Leo says

        I am, thank you. One other thing, I recently read John Mueller from Google said if you have made major updates to a piece of content changing the publish date is ok to do. I assume your code would reflect that change of date?

        Thanks again, and I just want to say your website has helped me so much over the years.

        Keep up the great work, a lot of people would be lost without your info, myself included.

        • WPBeginner Support says

          Yes, the code would change the date to the date you published a modification on the page.

  2. Ross Canning says

    My website is moving more towards evergreen content that answers specific questions, which for the most part should be relevant for many years to come. So rather than adding the dates now, I still feel it is better to not have nay, as the info will be good for a long time to come. Also there is a lot of pre-existing news info, content which fans know is old. So I think that leaving as is with no dates is the best way to go, for me that is, cheers.

    • WPBeginner Support says

      We would still recommend not removing dates for new users/fans to know what content is old or new.

      Administratör

    • Desy says

      I tell you what dude. If I see a blog post without a posting/publishing date, i close it instantly and go to the next guys blog. Simple as that.

      For most of the content I am looking for, it may get oudated as soon as after 2 months. Having to waste my time on something that may be outdated, is not an option.

  3. Suraj Barai says

    Awesome! I was going to remove the date from comments. But after reading this article. I can understand that we should not remove date..

    Thanks.

  4. Blair Witkowski says

    How about author? I use a css code to hide the author in my theme and on client websites because they don’t want a name appearing at the top of the page. For example, my client who is a realtor doesn’t want my name showing on their blog that I am the author. Does this hurt SEO?

  5. James Early says

    I understand why dates are important to your readers because you have new info coming out. My blog is about the Bible and I share insights and stories that are more evergreen than what you’re doing. Is there a reason to have the date stamp on my plugs with my kind of content. What would the advantage be? Less than 5% of my posts are related to events or what’s going on in the world. The focus is on a message about a particular Bible story.

    Thanks so much

    • WPBeginner Support says

      It could be helpful if you mention recent events in your messages but if you feel all of your content would be evergreen then it would be personal preference for the date.

      Administratör

  6. Robert says

    Hi, manual removing as well as wp meta and date remover and other plugins don’t work with urls containing date; dates still are in search result. What to do? I don’t want to change permalinks.

  7. Michelle says

    Hi Syed,
    Do you have a plug in for ”last updated?” The last time I tried to code something myself I got the white screen of death :)
    Cheers,
    Michelle

  8. Alexio says

    With your code the ”Last updated on” will show up even on new posts.
    I suggest to add this code so it only appears on updated posts:

    <time datetime="”>

  9. Yin Teing says

    Thanks so much for this post! This is so true even in 2017.
    Your posts have given me the encouragement not to follow what most blogs are doing today, which is removing dates from their blog posts and the permalinks, then doing 301 redirects.

    I’ve maintained a couple of older blogs in which the date is part of the url permalinks. After reading your blog posts, I’ve decided to maintain the permalink structure for my older blogs.

    As for the newer blogs that I am setting up, I change the permalink structure not to display the dates, but I’ve included the date in the article.

    Like what you mentioned ”Bottomline is if you truly value your readers, then you would not remove dates.”….I totally agree with you.

    I wish to thank you for all the wonderful tutorials that you have updated on this site.

  10. Mohd Shabaz says

    I Have A Software Download Website And I Want To Add A Option When I Update The Post With The New Version Of Software The Post Will Be Published On The Same Date I Update It

  11. Mariilyn Lesniak says

    I write recipes and want to bring them to my homepage as well as to rss feed. Is there a way to do this without changing the date as a scheduled post and let it republish at a specified future time?

  12. Stephanie says

    Thanks for this post, very interesting perspective, I appreciate it! I actually found your post because my theme is putting the DATE in the URL! do you have any advice on how I could fix this so it’s just the blog title?

    • Ahmed says

      Edit your permalinks. go to Settings > Permalinks. Choose ”post name” instead of ”date and name”. Save settings

  13. Catherine says

    Thank you I have installed this code and it shows my post has been updated on today’s date……but my other posts STILL show no dates…..where do I do to turn the date published back on?

  14. Angelo B Hall says

    Ugh …..
    Faith have it so i stumble upon your post about the same thing am looking to resolve .The date and time from my blog . I agree with you about making your own decision on keeping it or not most bloggers have looked over the fact of posts being old but in fact seeing the time stamp is like a memory lane which you wish to remember or like a birth date or a year in which you would love to relive . Sometimes we forget that pleasing everyone is not the best decision … We also often forget the reason we blog .. its not for time and date but for relevant content to help our viewers out or to give them some incite on what they never really thought about . You made my decision clear on keeping it .. & plus lol trying to remove it is harder than , I expected …..
    Thanks for the good read

  15. EMB says

    Perhaps all bloggers have been thinking about this problem.
    Every person has the right to choose a suitable model for yourself.
    I appreciate your article. It’s a proper thought.

  16. Anthony Attard says

    One thing to note is that for sites that use WordPress as an ecommerce site or any site that is not a blog, removing the date is very useful.

  17. Tremi says

    Thanks for sharing this wonderful post. I also had this thought before. Later I add the data to post just for the sake of adding. But now I realise why dates are important in the blog post.

  18. Sameer Panda says

    Very helpful. can I just replace the above mentioned code with my original code or what? Please guide me.

  19. Bang Amri says

    I just thinking to remove date from my articles , cause I think outdated articles is no good for my SEO . also not good looking from visitor viewer when they read articles from date 2005.

    nice share bro.

  20. Brian Reich says

    Personally I think dates in the URL make them harder to share, look sloppy, and make them uneccessarily longer, which could have an SEO effect. So while I’ve used them on my blog since before I knew better, I haven’t used them in a whole and won’t use them going forward.

    I agree with you though, the date that the post was last modified is critical. I like what Yoast and others have been doing: actually using their old, outdated content as a resource by updating it and reposting it. It gives readers who might have missed the old content a second chance at reading it, and provides readers that might stumble upon the old content an updated perspective on the article’s topic. It’s very much a win/win approach that I plan on adopting myself!

  21. Prabhudatta Sahoo says

    Hi There, I need a small help. Right now I am showing last modified date in my blog but even after that while in SERP it still shows my published date. Is there any reason for that? Or how do I change that to show last modified date in SERP as well?

  22. Kelvin says

    I’m thinking of displaying date on my Blog BUT hiding date from Search engines.

    How do I go about this?

    • Mark says

      try this if you’re trying to remove the dates from search engines, also worth clearing the cache.

      add_filter( ’wpseo_show_date_in_snippet_preview’, false); //Returning false on this will prevent the date from showing up in the snippet preview.

      • Mark says

        ps: add it within the functions.php file of your theme and may be wait till the bots crawl back again or re-submit the sitemap ..hope it helps

        add_filter( ‘wpseo_show_date_in_snippet_preview’, false); //Returning false on this will prevent the date from showing up in the snippet preview.

  23. Nate says

    I was thinking of removing dates but only wanted to do so for particular posts that were evergreen. However using a ”last updated on” date stamp seems like the perfect solution! Thanks for sharing this great idea.

  24. Gabriel Livan says

    Thanks for this post guys. I agree that ”last updated on” is so much better better than ”published on”. I had a feeling about it and you confirmed that. Keep up the good work on WP Beginner!

  25. John says

    old post I know (the date was on it :) )

    … I am starting a brand new blog and want to write articles.. back-fill.. posts that should be dated from 2012.. its blog with a story of events. The site is not live so no xml sitemap has been submitted. Eventually the site will have many posts dated from 2012 until 2015.. then I will go live.

    Will Google punish me for such behavior?

  26. James Artre says

    Out of curiosity, I went and checked over at Copyblogger… and they DO show the dates in their posts.

    It could be that they have updated their setting since your last update of this post. ;-)

  27. Syed Balkhi says

    If you’re doing a major rewrite, then sure you can do that. However if it’s minor edits, then it might become annoying for subscribers to keep seeing the old article in their RSS feed or worst in their emails (if you use RSS to email function).

  28. kristl says

    Whenever I update an article, I actually change the publish date (to the date I updated it), so it moves to the front on my blog, and my subscribers see the new one. Do you see any problem with that?

  29. Brett says

    If I do a full re-write to improve an old article, and paste the new article over the old one to retain the URL, should the post be marked ”no follow” for a period of time to allow search engines to de-index it before allowing them to again follow the post and hopefully rank it higher, or does it not matter that I overwrite the old article and leave it immediately open to search engines?

  30. Allyson Williams says

    Fabulous info. I update some blog posts annually and have been searching for a way to do this. I am using the Thesis theme. Can you walk me through how to do this for my blog?

  31. Richard says

    I am TOTALLY baffled by how to go into WordPress.com and alter any sort of code. I do mean TOTALLY baffled.

    I like the idea of ”last updated” solution–but I haven’t the foggiest notion of how I could alter the basic
    stuff I get with my free WordPress.com blog site.

    My goal is to write a book-form blog about my recent visit to Myanmar aka Burma. I want the posts to be chronological and I am using a static front page and still trying to figure out how to make this all play nicely together.

    Please tell me exactly how I would click through my Site Admin or Dashboard or whatever to modify the postings attached to the static front page to show ”last updated.”

    With gratitude.

    Richard

  32. George Almeida says

    Nice post! I tend to agree with having the date on your posts. I think it helps your readers for sure. One thing I’ve noticed with my blog is that even though I post the published data on all my blog posts, the date never shows up on the Search results. I’m not complaining really, it’s kind of the best of both worlds if you think about it. Anyone who sees one of my posts in their search, only sees the title and the Author but no date. If they click on the link, they will see the post AND the published date. This way, folks may not skip the post simply because it was posted 1 year ago and they do not get lost. It’s a win win. I wish I could tell you how I have this working but I don’t really know. I’m using a hosted WordPress blog. Thanks again for the article!

  33. Jennifer Roberts says

    Thanks. As a reader I hate it when bloggers remove dates from time-sensitive posts. As a blogger, though, I’ve had some good posts get lost in search results because they weren’t new, even though I had updated them. This sounds like a great solution. I hope it works for me.

  34. João Marcos says

    How add DATE to dinamic descripition using this code… ?

    add_action( ’wp_head’, ’gen_meta_desc’ );
    function gen_meta_desc()
    {
    global $post;
    if ( ! is_home() )
    return;
    $meta = strip_tags( $post->post_content );
    $meta = str_replace( array( ”\\n”, ”\\r”, ”\\t” ), ’ ’, $meta);
    $meta = substr( $meta, 0, 125 );
    echo ””;
    }

  35. Rich Page says

    Awesome! Finally the solution I was also looking for – I was always wondering whether to remove dates or not for my classic old content – this is the perfect solution! Thanks!

  36. Katiero Porto says

    It’s really simple! It depends on your niche, style and focus. If your blog is about something that is always changing, you will have to post almost everyday, update the posts sometimes and you can’t remove post dates.

    Only those who have some sort of atemporal content, let’s say who are writing things about history or religion, those people can hide dates if they want to because their content is naturally evergreen. It will help the reader today and ten years from now.

    So my suggestion is if you want to post less and think about long term you should choose an atemporal topic to blog, not something that changes everyday like internet marketing or wordpress.

    • Patty Ayers says

      But nobody wants outdated WordPress information, so WordPress info really *must* be either freshly written *or* evergreen, if it’s to have any value. And it can be.

    • Lora Y says

      I totally agree. My blog posts are not in any way time-sensitive, but more philosophical in nature. I don’t see the point in adding dates to these posts. My reason for removing them is so that readers wouldn’t realize how inconsistent I am at posting. Terrible. I know.

  37. bernice says

    This post is great, thanks for making it. However, I am a real newbie. Where do I put this code?
    Thanks again.

  38. Hayslan says

    Wow! I was just installing my new blog and thinking in removing the posts dates.

    Coincidentally I came here on the blog and at some point I saw the article about ”How to Install and Setup W3 Total Cache for Beginners” somewhere and thought, ”I’ve read this article before .. is it made ​​another?”. I went to check and saw it was the same article with a difference: updated!

    Not enough the article in question, just falling with a parachute here in this article .. let’s face it, awesome and helpful!

    You simply rock!

  39. Neeraj Pathania says

    I wanna ask you about something. I have a wordpress blog and what i do is update each post monthly. So here’s my doubt:” Is there any limit on the number of times any single post can be updated.” I know that the chances of that might be slim to none. But i want to be sure.

    Please reply ASAP!

  40. Jim says

    Thank you for doing this post, I was actually thinking of getting rid of the dates on my site, and now I know why not to. I see how valuable they truly are, thank you again!!

  41. Ian Thomson says

    Great post and I agree 100%. I am very pleased you are thinking about the reader. If I can’t find a date I ignore the post and move on as it has limited value without one. I have just left comments with another blogger who proclaims himself a ”leading social media marketing and online marketing expert”. He evangelises not using dates and does not accept that all information ages. Oh well.

  42. Naeem says

    What about the dates in Blogger Urls, like on my blog at
    I am thinking of removing the date stamps in URL because they might affect SEO.

    What are your views on it?

    • WPBeginner Support says

      We don’t use dates in WPBeginner’s URL structure. However, dates in URL can positively affect sites like newspaper sites, journals, other sites where dates are important to the relevancy and context of the content.

      Administratör

  43. Kenneth von Rauch says

    Thanks for the post, Syed. What you say makes perfect sense. I just want to add that it still depends on the niche. For example, you can use WordPress as a Welcome site for a brick and mortar company. Such companies still exist and they just want their contact details to be ’available on the Web”. :) That said, I totally agree that in the case of WPBeginner.com, it’s beneficial to display post dates.

    As for the code you offer, it works just fine, but you can just install the WP Last Modified plugin that does exactly the same. The advantage is that you won’t have to mess around with any code. The only issue with the plugin is that it does not remove the ’Posted on’ text. I personally believe the users should have the option to decide whether to keep that text or not.

  44. Dpot says

    I always prefer the use of date.

    Personally it allows me to see in which date I published what!

    Thank you :)

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.