WP Link Pages Extended

Mechanics

The mechanics of this plugin uses the filter wp_link_pages_args which triggers a defined function. The function is called with the default parameters used by the wp_link_pages() function as determined by the theme.

Inside the wp_link_page_extended_args() function, after a simple logic test to determine whether the post or page being displayed requires the pagination navigation, an array is defined to be used by the wp_link_pages() function to replace the default definitions. The parameters definitions are described under the Codex reference for the wp_link_pages_args filter.

The intent here is to use the standard numeric pagination navigation system but augment it by using the ‘before’ and ‘after’ array elements to surround the numeric navigation system with not only the text navigation system but also the page information. ‘link_before’ and ‘link_after’ are used for prepending and appending text to the page number and is not used in this situation: they are included in this function for completeness.

Note that internationalization was used for the definitions of the link titles.

Share
The short URL of the present article is: http://www.terryobrien.me/g3w0j

Page 2 of 6
First | Prev | 1 | 2 | 3 | 4 | 5 | 6 | Next | Last
View All