• This is my code I use this code to display latest 6 posts from custom WordPress category.. Now I want to pagination this post if posts are More than 6

    <?php
    $my_query = new WP_Query(‘showposts=10&cat=2158’);
    while ($my_query->have_posts()):
    $my_query->the_post();
    $do_not_duplicate = $post->ID;?>
    “><?php the_title(); ?></br>
    <?php endwhile; ?>

  • The topic ‘add pagination to custom category posts’ is closed to new replies.