I created a Wordpress blog over a year ago basing a child theme on the twenty twelve theme, I have made a few minor modifications. One of these modifications was to add custom portfolio content, so I can have a portfolio category page that links to individual posts within that category.
Issue: Something that has recently become evident as my post numbers have grown, is when I click through the main menu/categories page it displays the first 10 post fine, but if there are more than 10 post, the 'Older post' link at the bottom of the page offers a click through, but the same 10 posts (newest posts) are displayed again, despite there being 13 posts, so it should roll over and show the oldest 3. This issue can be seen by going to this page link below, other catergories don't have more than 10 posts mainly. coder-tronics.com/categories/c-programming
Now if I use the side bar Categories link choosing the C-Programming category, the Older and newer page links work fine displaying all 13 posts correctly, this link demonstrates the correct operation.
I have been trying to work out what I have done wrong, it was over a year ago I followed a tutorial to do this so not as familiar with Wordpress as I was. I have a custom-content.php which is based on the content.php, and also page templates for each portfolio category i.e. C programming etc. I have checked the custom-content.php and it appears ok as made some minor amendments and tried to remove this from being a problem, by having the portfolio page template for C programming use the content.php, this had no effect on the issue.
Not posted any code but happy to do so, just unsure where the issue is at this time and didn't want to post irrelevant code.
Edited added code reference Pieter comment below
<?php /* Template Name: C Programming Category page */ get_header(); ?> <section id="primary" class="site-content"> <div id="content" role="main"> <?php query_posts('category_name = C Programming'); ?> <?php if ( have_posts() ) : ?> <header class="archive-header"> <?php if ( category_description() ) : // Show an optional category description ?> <div class="archive-meta"><?php echo category_description(); ?></div> <?php endif; ?> </header><!-- .archive-header --> <?php /* Start the Loop */ while ( have_posts() ) : the_post(); /* Include the post format-specific template for the content. If you want to * this in a child theme then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content-custom', get_post_format() ); endwhile; twentytwelve_content_nav( 'nav-below' ); ?> <?php else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </div><!-- #content --> </section><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>