WordPress.org

Ready to get started?Download WordPress

Forums

Custom Query and Broken Pagination (2 posts)

  1. donboy7
    Member
    Posted 1 year ago #

    HEllo,
    I have custom query that works fine. I got pagination show up but the problem is when you click any page number content shows up right but page 1 still remain selected.

    I found this that might be the solution: http://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination

    but I was unable to implement it to my code.

    Here is my code: http://pastebin.com/EL8iUacP

    Please advice.

  2. bcworkz
    Member
    Posted 1 year ago #

    You are using the main query to manage pagination while you generate custom content in parallel. I may be wrong, but we don't know what the main query really is, it's a blind trust situation.

    Due to the specific custom nature of your query, I think you are better off forgetting about the main query entirely and managing the pagination yourself. The pagination for your custom query is basically in place. You just need a different function to handle the actual page navigation tags specific for this query.

Topic Closed

This topic has been closed to new replies.

About this Topic