WordPress.org

Forums

I am having a Page Navigation Problem (2 posts)

  1. Mshaku
    Member
    Posted 5 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.

    http://www.HireYourVirtualAssistant.com/blog

    is the same as

    http://www.hireyourvirtualassistant.com/blog/page/2/
    http://www.hireyourvirtualassistant.com/blog/page/3/

    and so on.

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

    Please help

  2. Michael
    Forum Moderator
    Posted 5 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