• I’m developing a Web site based on Customizr free and I need an home page with paginated custom posts.

    In my child theme I added the front-page.php file and I set a static home page, everything works fine except for post pagination.

    I use this code to get page index:

    if ( get_query_var('paged') ) {
    		$paged = get_query_var('paged');
    	}
    	elseif ( get_query_var('page') ) {
    		$paged = get_query_var('page');
    	}
    	else {
    		$paged = 1;
    	}

    and
    the_posts_pagination(array('mid_size' => 2 ));
    to display the nav block, but this is empty.

    Any idea?
    C.

  • The topic ‘pagination not working on custom static home page’ is closed to new replies.