When your website means business.

WP Query | Type: PHPPaging CPT Listing on Static Home Page

Paging a query on static page set as home page (clicks to /page/2 but continues to show original items)

REPLACE THIS:
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; 

WITH THIS:
if ( get_query_var('paged') ) {
    $paged = get_query_var('paged');
} elseif ( get_query_var('page') ) {
    $paged = get_query_var('page');
} else {
    $paged = 1;
}
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept