WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Not changing posts --- Correct query. (4 posts)

  1. overexposeddesign
    Member
    Posted 2 years ago #

    When I click on another page it doesn't load the appropriate posts.
    Things I have tried:
    Re-installing plugin
    Using previous query I used that has worked
    Copying an exact query from authors website
    Tried creating a query in almost every way I know possible.

    Here is my Query:

    [code moderated - plaese follow the forum rules for posting code]

    Any ideas? This seems ridiculous to me. There is no reason it should not be working from what I can tell.

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. overexposeddesign
    Member
    Posted 2 years ago #

    The pagination works if it's a query with no arguments at all. Once I make a custom query it doesnt work.

  3. overexposeddesign
    Member
    Posted 2 years ago #

    I was able to narrow the problem down. This problem only seems to be happening when I have my homePage set as static page with this loop as the template file. Not sure why that would affect pagination though.

  4. overexposeddesign
    Member
    Posted 2 years ago #

    Resolved. Found solution here
    http://pastebin.com/brK4AM51

    use conditional above query to set $paged variable.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic