ap_questions_the_pagination( integer|false $paged = false )

Description #

Output questions page pagination.

Parameters #

  • $paged
    integer | false (Optional) Current paged value. Default value: false

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: includes/question-loop.php

function ap_questions_the_pagination( $paged = false ) {
	if ( is_front_page() ) {
		$paged = get_query_var( 'page' );
	} elseif ( get_query_var( 'ap_paged' ) ) {
		$paged = get_query_var( 'ap_paged' );
	} elseif ( get_query_var( 'paged' ) ) {
		$paged = get_query_var( 'paged' );
	}

	ap_pagination( $paged, anspress()->questions->max_num_pages );
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment