This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

3pagination

Description

Give your visitors the ability to easily access all your site’s content. Any page between 1 and 999 can be accessed with a maximum of 3 clicks (see screenshots).

  • Easy access to all your website’s content
  • Make searchengines happy by creating a more thorough internal linking structure
  • No need to modify theme files! (see installation instructions)
  • Modify labels and CSS and preview pagination in backend before using it in your frontend pages!
  • Both default and pretty permalink structure are supported
  • Custom queries are supported
  • So far, this code has been tested on index, archive, custom post type archive, category and search pages of some of the most popular WordPress themes.

Please leave feedback, bug reports or comments at https://github.com/paddelboot/3pagination/issues

Homepage: http://meilenstein.ms

A brief Markdown Example

<?php if ( class_exists( 'threepagination' ) ) : threepagination::draw(); endif; ?>

Translations

  • English
  • German

Screenshots

  • Settings page: preview, label, placement, CSS and other settings
  • Injected below header

Installation

Installation

  1. Upload 3pagination.php to the /wp-content/plugins/ directory OR choose Plugins->Add New and type “3pagination”.
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go to Settings->3pagination to set labels, placement and CSS.
  4. Done!

How to use

All options can be set in an options page, the pagination container can be injected or appended to the existing DOM.
If you are unsure about the HTML structure of your Website, you can do the following (in Firefox):

  1. Right click the spot where you wish the pagination to appear and choose `Inspect Element (Q)` from the menu list
  2. Copy the id of the container, i.e. #wrapper.someclass
  3. To append or prepend the pagination to this container, paste it’s id into the appropriate field of the Placement section under `Settings->3pagination`
  4. Choose on which pages (archives, search etc.) the pagination should appear. Done!

How to use – old school

You can, if you want (or to have your website degrade gracefully), call the class methods in your theme files.

draw() : Display the pagination
draw ( $pretty = TRUE, $max_num_pages = FALSE, $labels = TRUE, $css = ‘classic’, $wp_query = FALSE )

  • $pretty (optional) | Are you using pretty permalinks?
  • $max_num_pages (optional) | Limit to a maximum number of pages
  • $labels (optional) | Display or not the navigation arrows
  • $css (optional) | CSS class name that will be appended to the main div container
  • $wp_query (optional) | custom WP query object

get() : Return the pagination as a HTML string
get ( $pretty = TRUE, $num_items = FALSE, $per_page = FALSE, $labels = TRUE, $css = ‘classic’, $wp_query = FALSE )

Example usages

threepagination::draw ( TRUE, FALSE, FALSE, 'my_custom_class', FALSE )

Displays the pagination on a website that uses pretty urls, takes the standard page count, hides the navigation arrows, attributes a CSS class ‘my_custom_class’ to the pagination container and uses the global query object.

$string = threepagination::get ()

Save the pagination in the $string var.

Contributors & Developers

“3pagination” is open source software. The following people have contributed to this plugin.

Contributors

Translate “3pagination” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.1a

  • Initial version

0.2a

  • Improved arrow navigation
  • replaced $num_items and $per_page with $max_num_pages
  • Slightly changed CSS colors

1.0

  • Stable version
  • Fixed support of custom css styles via function parameter

1.2b

  • Added backend settings page
  • Inject pagination into DOM
  • Support for search templates

1.3b

  • Added checkbox for pretty URLs;
  • Added option for max no. of pages
  • Fixed link URL building;
  • German localization;
  • Plugin loading enqueued;
  • Fixed bug with pagination link;
  • Contextual help tab
  • Fixed bug with default URLs pagination link

1.3.1b

  • New function parameter $wp_query : support for custom query object

1.3.2b

  • Fixed error message in options screen after fresh install