WordPress.org

Ready to get started?Download WordPress

Forums

Using PageNavi with Custom querry (1 post)

  1. sogib
    Member
    Posted 1 year ago #

    Hello everyone,
    My problem is a bit comblicated. I'm trying to get list of all posts but with one leading category. All posts from category X and then rest.
    I've failed with creating a right get_post query and decide to make two wpdb queries. First to get all posts from category X and second to get all other posts and merge both arrays.
    And here is my question:
    I'm showing 9 posts per page and now I have a problem. I can't use paged var because I'm using two queries. How can I make pagenavi to get 9 pages from whole array?

Topic Closed

This topic has been closed to new replies.

About this Topic