Download This Plugin | |
Download Elegant Themes | |
Name | Adjacent Archive Links |
Version | 3.0 |
Author | Justin Watt |
Rating | 100 |
Last updated | 2014-05-21 04:02:00 |
Downloads |
575
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Adjacent Archive Links plugin added 12 bytes of resources to the Home page and 16 bytes of resources to the sample Post page.
Adjacent Archive Links plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Adjacent Archive Links plugin ads no tables to your Wordpress blog database.After activating the plugin, you will have two new template tags at your disposal:
<?php previous_archive_link( 'format', 'link' ); ?>
<?php next_archive_link( 'format', 'link' ); ?>
They adapt their output depending on whether the date archive is a day, a month, or a year, and they will only output a link for an adjacent time period in which you have published posts. Both tags take two string parameters, format and link.
The format parameter defines what comes before and after the link. In it, %link
will be replaced with whatever is declared in the link parameter below. previous_archive_link
defaults to "« %link
" and next_archive_link
defaults to "%link »
".
The link parameter defines the link text. Both tags default to "%date
", the
adjacent archive page's localized date.
If you're interested in contributing to the code behind this plugin, it's also hosted on GitHub: https://github.com/justincwatt/wp-adjacent-archive-links