Pagination with Post
-
Hello,
i am using the below code to list my posts in my custom page template i want a pagination in this page. i tried a lot with the codes which is available globally but i am not having a proper output which i need if anyone is available please respond and provide me the solution of this problem<?php
global $post;
$args = array( ‘posts_per_page’ => 500, ‘category’ => 5 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post);
?>
<?=the_title()?>
<?php endforeach; ?>thanks
- The topic ‘Pagination with Post’ is closed to new replies.