Thanks for your reply.
I have tried this as well but it is still NOT working 🙁
More info …
I am on archive.php where I m showing posts related to passed category i.e. (?cat=[num] in the query string)
The default page is coming and showing the first records (I have set post_per_page to 1) and also showing 5 pages in page nav. When I click on page 2/3/4/5 it shows a 404 page 🙁
Hope I am a bit clear this time.
Hi ..
I am facing the same problem and the above solution is not working for me 🙁
I m getting 404 page when I click on page 2 or 3 … here is my code
$catID = get_query_var(‘cat’);
$catName = strtolower(get_cat_name($catID));
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
$wp_query = new WP_Query();
$wp_query->query(“category_name=$catName&paged=$paged&posts_per_page=1”);
<?php if ($wp_query->have_posts()) : ?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
// data ..
<?php endwhile; ?>
<?php endif; ?>
Any help!
Thanks
Ashish