Generates a link back to the archive page the current entry is on. Makes it easier for users to retrieve the chronology of a blog.
Examples (without function):
Live demo:
See description at decaf.de/entries-on-page-x/
Installation:
Plugin needs <?php if (function_exists('archive_page_link')) { archive_page_link(); } ?> in your templates. See installation details.
Multi-language:
Plugin works in several languages right now, see notes.
Available languages at this time:
If you localize the plugin, we would be glad to know — Thanks a lot!
Structure of the HTML code is like that:
<span class="entriesonpagex"><a href=".."><strong>Entries on page <span class="page">3</span></strong></a> of category »<strong>Foobar</strong>«</span>
Make use of these CSS classes if you want to set up individual styles:
.entriesonpagex { }
.entriesonpagex strong { }
.entriesonpagex a { }
.entriesonpagex a strong { }
.entriesonpagex a strong .page { }
HTML of your article template should contain the post ID if you like ‘Entries on page x’ to refer not only to a page with posts but to the post itself:
<div id="post-<?php the_ID(); ?>" class="post"><h1>Post title..<h3>Cookies</h3>
The plugin makes use of cookies in order to save the refering page that leads to a single entry. If cookies aren’t accepted, the plugin generates default archive links apart from category, tag, author and date.