TheJoe.it Into the (open) source

29Jan/142

WordPress: warn the reader that the post is old

clocky

Often (writing software and technology) that the article is now present, tomorrow has already passed. There is at least un plugin per WordPress to notify the reader that the post you're reading was written long ago, that is a perfect solution and ready for use, groped but I also wanted to change the code of my theme to add this simple function automatically.

I state that the following steps create a box (in this case yellow) before the title of the article.

1Jul/130

WordPress: alert the reader to an article dated

clocky

Today I illustrate a small process, which I highly recommend to those bloggers linked to the development of a certain topic, to automatically warn the reader that the article you are reading is more old man a time of our choosing, and possibly belonging to a certain category. I am thinking especially to my blog, in which information technology can go well today, but it may already be obsolete with the next release of a software, no longer supported by the operating system or ingetrata.

The result will be completely customizable: appear a block (DIV) in the top of the article, with a class of our choice. We will then give us a style to the DIV.