• Not getting why this isn’t working? I am using wp_pagenavi(); at the bottom but it isn’t working correctly. I hit button 3 and it reloads page 1 rather than loading page 3 but the url changes to &paged=3. I’m so confused. Can anyone please help me as I have posted before and never got a response… please if you come across this and have a tip please I beg of you, help me out.

    [code moderated per forum rules - please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Add the ‘paged’ parameter to your query arguments:

    $arg = 'posts_per_page=12&cat=' . $category_ID . '&paged=' . get_query_var( 'paged' );

    Thread Starter Rubyfire

    (@rubyfire)

    oh I’m soooo sorry for screwing up and pasting the code here instead of the paste bin… please forgive me…. but Thank you so much bagel. Worked perfectly and I actually ended up finding a thread in the forum about 1/2 hour after I posted this. The wordpress codex should be more clear on this but hey… crap happens right :). Thanks again guys!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_pagenavi() not working correctly’ is closed to new replies.