llms_get_paged_query_var()
Returns the page number query var for the current request.
Description Description
paged: Used on the homepage, blogpage, archive pages and pages to calculate pagination. 1st page is 0 and from there the number correspond to the page number page: Used on a static front page and single pages for pagination (<!--nextpage-->). Pagination on these pages works the same, a static front page is treated as single page on pagination.
Return Return
(int)
Source Source
File: includes/functions/llms.functions.page.php
function llms_get_paged_query_var() {
if ( get_query_var( 'paged' ) ) {
$paged = get_query_var( 'paged' );
} elseif ( get_query_var( 'page' ) ) {
$paged = get_query_var( 'page' );
} else {
$paged = 1;
}
return (int) $paged;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.3.0 | Introduced. |