Forums

wp_pagenavi() not working correctly (3 posts)

  1. Rubyfire
    Member
    Posted 9 months ago #

    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]

  2. Big Bagel
    Member
    Posted 9 months ago #

    Add the 'paged' parameter to your query arguments:

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

  3. Rubyfire
    Member
    Posted 9 months ago #

    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!

Reply

You must log in to post.

About this Topic