pagination.php
Pagination navigation functions
Generates Bootstrap 5 styled pagination with accessible markup for reference archives and other paginated content.
Tags
Table of Contents
Functions
- jpkcom_acf_references_pagination() : void
- Output Bootstrap 5 pagination navigation
Functions
jpkcom_acf_references_pagination()
Output Bootstrap 5 pagination navigation
jpkcom_acf_references_pagination([string|int $pages = '' ][, int $range = 2 ]) : void
Generates numbered pagination with first/last and prev/next controls. Includes proper ARIA labels and accessible markup.
Features:
- First/Last page links (« »)
- Previous/Next page links (‹ ›)
- Numbered page links with range control
- Active page indicator
- Disabled state for unavailable actions
Parameters
- $pages : string|int = ''
-
Optional. Total number of pages. Default empty (auto-detect from query).
- $range : int = 2
-
Optional. Number of page links to show on either side of current page. Default 2.
Tags
Return values
void —Outputs HTML directly.