WordPress.org

Ready to get started?Download WordPress

Forums

Page Navigation Problem (7 posts)

  1. Amisanoai
    Member
    Posted 3 years ago #

    Hello, I am using the Prestige Theme and made all the changes I need as said on other topics (if necessary) but I can't make my homepage go to previous or next pages of posts. The url changes to page/2/ but the navigation says it is page 1 and the posts are from page 1.

    I think this piece of code is important:

    // prepeare posts query
                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                $args=array('paged'=>$paged);
    
                if($blog_categories != '') { $args['cat'] = $blog_categories; }
                if($blog_authors_arg != '') { $args['author'] = $blog_authors_arg; }
                if($excluded != '') { $args['category__not_in'] = $excluded; }
    
                query_posts($args);
                $max_page = $wp_query->max_num_pages;

    What changes do I need to make?

    Does the permalink structure affects it? I am using /%category%/%postname%/

    Does the fact that I am using the a page as blog home page affects the navigation? mysite.com/home (page) -> mysite.com

    Using the theme twentyten it works well.

    The wp-pagenavi plugin also doesn't work with the same problem.

  2. Amisanoai
    Member
    Posted 3 years ago #

    Please somebody can help with this?

  3. Aaron
    Member
    Posted 3 years ago #

    I'm not good with the code and I'm not familiar with the Prestige theme or its developer/designer.

    You said it works with twentyten. I would try two or three other themes to see if it is working there. If so, then I would contact the Prestige theme developer, if you can.

    Send me more info and I'll see if I can help.

  4. Kassiah
    Member
    Posted 3 years ago #

    Hey I don't know if you still need this, but you have to set Front Page Display.

    Under Settings, go to Reading. Then set Front Page displays to a "Static Page" and choose the page you have your homepage content on.

    hth

  5. hockeyfreak
    Member
    Posted 3 years ago #

    Hey Amisanoai,

    Have you found a solution for the problem? 'Cause I have the same problem as you (had) and I don't find a solution.

    Would be nice if you could help me please!

    Best regards, Alex

  6. Amisanoai
    Member
    Posted 3 years ago #

    No sorry.

  7. kostas76
    Member
    Posted 3 years ago #

    I have the same problem.Could anyone help please???

Topic Closed

This topic has been closed to new replies.

About this Topic