We'll create fresh WordPress site with A Year Before installed. You have 20 minutes to test the plugin after that site we'll be deleted.
With “A Year Before” you can show the titles of the articles which were written a certain time ago. So you can show in a “historical corner”, what happend in your blog e.g. 30 days, 6 months or a year before. You also can use the “anniversary-mode”, which will display all the posts through the years, which were written on this day and month.
You can use it as a wordpress-widget or put it in your theme as a php-function with parameters.
Just click on the configuration-button of the widget an use the selfexplaining popup-dialog.
Use the output-pattern to define the look of the found articles. Possible patterns are:
You can call the plugin with a PHP-statement in a WordPress-Theme and pass some parameters in this scheme
parameter1=value1¶meter2=value2¶meter3=value3 …
You can use the following parameters
<li>
</li>
ayb_posts("day=30&before=&after=<br />&showdate=0");
Shows the titles of the articles written 30 days ago without showing the date. The articles will not been showed as a HTML-list but simply seperated by a linebreak <br />
.
ayb_posts("month=6&day=14¬found=Nothing blogged on this day.");
The titles of the articles written half a year and two weeks before, also showing the date . If there was no article written on that day, the output will be »Nothing blogged on this day.«
ayb_posts("range=14&dateformat=y-m-d");
Looks up a year back for written articles. If none are found, the plugin will check the next 14 days in the future. If a article is found on some of this days, all articles of this day will be listed with a “year-month-day”-format.
ayb_posts("anniversary=1");
Shows the title of all posts, which were posted on the same day in the same month, independend of the year. E.g. on chistmas day you will see all posts, which are posted on december 24th since the blog was started.
If you like CSS, you can style the date with the class ayb_date
, the link of the article with the class ayb_link
and the notfound-message by using the class ayb_notfound
.
Deactivate the plugin, then select “delete” in the plugin-panel. The files and the options of this plugin will be deleted. Thank you for using “a year before”. 😉