JPKCom ACF Jobs

pagination.php

Pagination navigation functions

Generates Bootstrap 5 styled pagination with accessible markup for job archives and other paginated content.

Tags
since
1.0.0

Table of Contents

Functions

jpkcom_acf_jobs_pagination()  : void
Output Bootstrap 5 pagination navigation

Functions

jpkcom_acf_jobs_pagination()

Output Bootstrap 5 pagination navigation

jpkcom_acf_jobs_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
since
1.0.0
global

int $paged Current page number (set by WordPress).

global

WP_Query $wp_query WordPress query object.

Return values
void

Outputs HTML directly.


        
On this page

Search results