iterate_posts_with_pagination.php

<?php $args = array( 'paged' => ((get_query_var('paged')) ? get_query_var('paged') : 1), 'posts_per_page' => 4 ); query_posts($args); while(have_posts()) : the_post(); //the post wp_reste_postdata(); endwhile; ?>
Iterate posts with pagination

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.