WP Link Pages Extended

Before

The first element added to the ‘before’ array element is the surrounding <div> and <p> definitions.

This clears out any columns defined through the page template and positions the whole pagination navigation element in the center of the page.

Next the page number and page count element is appended to the element to be displayed above the actual pagination navigation display.

‘$page’ and ‘$numpages’ are global variables defined earlier in the function. ‘$page’ is the current page number and ‘$numpages’ is the total number of pages. Note that the words ‘Page’ and ‘of’ are internationalized.

Finally the ‘First’ and ‘Prev’ page links are defined, depending on whether or not the current page is the first page.

‘firstpagelink’ is defined locally here and is not part of the overall array specification.

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

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