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.

Top ↑

Return Return


Top ↑

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;


Top ↑

Changelog Changelog

Version Description
6.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.