• I am using starkers html5 blank theme to build my own local website and my loop pagination is broken

    On my main loop page I changed the pagination navigation using the plugin “wp-pagenavi” and my pagination has not worked, giving me the error: “Not Found
    Apologies, but the page you requested could not be found. Perhaps searching will help.”

    I’ve tried going back to the original pagination code and scrapping the plugin. I’ve tried resetting permalinks. I also attempted to follow the WordPress advanced trouble shooting, but I don’t know enough about PHP to really know what I’m doing with it. Here is the pagination code for index.php:

    <?php /* Display navigation to next/previous pages when applicable */ ?>
    <?php if (  $wp_query->max_num_pages > 1 ) : ?>
    
    <nav>
    <?php next_posts_link( __( '← Older posts', 'starkers' ) ); ?>
    <?php previous_posts_link( __('Newer posts →', 'starkers' ) ); ?>
    </nav>
    
    <?php endif; ?>

    and here’s a link to my loop.php code

    The navigation starts on line 129, but I did not want to neglect putting anything else that might be pertinent up. Any thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Did you try to reset your permalink structure and disable plugins? If you already did that, then try to remove .htaccess file and start with a fresh one.

    Thread Starter brianpunch

    (@brianpunch)

    I tried the first two, although I reset the permalinks and deactivated my plug ins in the back end of WordPress.

    I’m afraid I don’t know much about .htaccess files. I did not see any .htaccess files in my website folder, though I did find several in script files as a part of Ampps. Which one might you be talking about? What kind of code would make for a sufficient replacement?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blank Theme – Broken Pagination’ is closed to new replies.