Entries on page x

Author DECAF
Contributors decafmedia
Type Free
Current Version 1.3.4
Last Updated 07 Aug, 2010
Released 02 Dec, 2008
Total Download 2,723
Active Install 10
Support 0 out of 0

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):

  • Entries on page 12
  • Entries on page 1 of category »WordPress«
  • Entries on page 4 for tag »Plugins«
  • Entries on page 2 by John Doe
  • Entries on page 9 from August 2008

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.

Localization (L10n)

Available languages at this time:

  • English
  • German/Deutsch
  • Turkish/Türkçe (by courtesy of DJ N-Gin)
  • Polski (by courtesy of Jeena Paradies)
  • Swedish/Svenska (by courtesy of Jeena Paradies)
  • Bulgarian/Български (by courtesy of Bellerophon)
  • Chinese/ 中文 (by courtesy of Johanna and 孔晶 Kong Jing)
  • French/Français (by courtesy of Patrick Andrieu)
  • Spanish/Español (by courtesy of Stonie)
  • Russian/Русский (by courtesy of dedlfix)
  • Italian/Italiano (by courtesy of at)
  • Belarusian/Беларуская (by courtesy of FatCow)
  • Ukrainian/Українська (by courtesy of ghost)

If you localize the plugin, we would be glad to know — Thanks a lot!

Code

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.

0
0 Reviews
5
0%
4
0%
3
0%
2
0%
1
0%