The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

I am having a Page Navigation Problem (2 posts)

  1. Mshaku
    Posted 6 years ago #

    Hi everyone, please I need help with this.

    I am having Page-navigation-problem, when i go to page 2, 3, 4 and so on the results are same with blog page.


    is the same as


    and so on.

    I don't know what to do, kinda confused too.

    Please help

  2. Michael
    Forum Moderator
    Posted 6 years ago #

    assuming your blog page template uses a custom query without the paged parameter.

    edit this template file and look for the line with 'query_posts(...);'
    then add the new line before that and integrate the 'paged' parameter to the query:
    similar to the code below (your query code will probably be different)

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    <?php query_posts('category_name=blog&posts_per_page=5&paged=' . $pages); ?>

    if you have problem with that, you could paste the code of your template file into a http://wordpress.pastebin.com/ and post the link to it here.
    someone might have a look at it and might be able to make a suggestion.

Topic Closed

This topic has been closed to new replies.

About this Topic