absint($post_per_page), 'post_status' => 'publish', 'paged' => max( get_query_var( 'paged' ), get_query_var( 'page' )) ); global $check_page; $check_page = max( get_query_var( 'paged' ), get_query_var( 'page' )); //$args = array_merge( $wp_query->query_vars, $args ); $the_query = new WP_Query( $args ); ?> $layout, 'template' => $template, 'column' => $column, 'post_per_page' => $post_per_page, 'excerpt_length' => $excerpt_length, 'page_option' => '' ); ?> found_posts - $post_per_page ) < 0 ){ $max_paged = 1; }else{ $max_paged = ceil( ($the_query->found_posts - $post_per_page ) / 4 ) + 1; } if( $pagenavi == 3 ) { $rstkey = uniqid(); global $rst_pagenavi; $rst_pagenavi = array( 'key' => 'angllia_'.$rstkey, 'max-paged' => $max_paged ); if ( function_exists('angllia_render_script_ajax_block')) { angllia_render_script_ajax_block($args, $rst_blog, $rstkey); } } ?>
have_posts() ) : ?> have_posts() ) : $the_query->the_post(); ?>