Forums

Will not show archived posts (5 posts)

  1. oweninnamibia
    Member
    Posted 3 years ago #

    Hi there,

    I'm working on an issue for a friend who seems to have a problem with his page navigation.

    At the bottom of the site there are page links that should (in theory) allow users to cycle through previous posts. However, when these page links are clicked, all you keep getting is the first four posts.

    I've disabled the wp page navi plug-in, but it still doesn't work, thus eliminating the the plug-in as a suspect.

    Any ideas? I'm thinking it may be the php query function, and not the blog settings, but I'm still learning WordPress and can't be certain.

    Any help or direction would be highly appreciated.

    Thank you :)

    Kind regards,
    Owen

    Site: kenlavigne.com

  2. oweninnamibia
    Member
    Posted 3 years ago #

    No WP-Love?

  3. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Have you tried using the default permalinks? Or switching temporarily to the default theme in case it's a theme issue?

  4. oweninnamibia
    Member
    Posted 3 years ago #

    It does seem to be the theme, as I switched to the default WP theme and the pagination seemed to kick-in.

    Something tells me this is going to be a code issue that takes time to work-out.

    In terms of the WP-CODEX, is there a .php file that primarily controls the pagination?

    Here's where I think the issue may lie:

    wp-includes/blogstyle.php

    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    else { ?>
    <p class="pagination"><?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?></p>
    <?php } ?>

  5. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    In terms of the WP-CODEX, is there a .php file that primarily controls the pagination?

    The post pagination is controlled by the two template tags previous_posts_link and next_posts_link.

    You need to be looking at index.php within the theme to see if these are being used correctly. I'm also wondering if you have a permalink problem...

Topic Closed

This topic has been closed to new replies.

About this Topic