WP_PageNavi only showing first post(s) for each page

Home Forums Calendar Products Events Calendar PRO WP_PageNavi only showing first post(s) for each page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #52394
    Jeremiah
    Participant

    I’ve installed the wp_pagenavi plugin and used the code for implementation as presented in the ‘Queries and Pagination’ tutorial from January 2012. However, each link to another page only presents the posts that would normally appear on the first page. The url for each page does not update to reflect the current page number and no matter what page link is clicked, the first page of posts is displayed.
    Query and wp_pagenavi implementation can be viewed here
    http://snippi.com/s/lkbbvvm

    #52457
    Jonah
    Participant

    Hi Jeremiah,

    Hmm, it seems to be working ok for me. I would suggest first try deactivating all other plugins to see if there is a conflict. Also, try changing the ‘past’ arg to ‘upcoming’.

    Let me know how that goes.

    – Jonah

    #52469
    Jeremiah
    Participant

    I have tried with all plugins (except for Calendar and Calendar Pro) disabled and still no luck. I did discover however that if I use the default permalinks instead of a ‘pretty’ permalink structure, it works fine.

    I’m working to create a page template for viewing archived events, hence the use of the ‘past’ arg.

    #52471
    Jonah
    Participant

    Hi Jeremiah,

    Where are you placing your query code? I have mine in a page template I’ve assigned to a page. Maybe your code is being conflicted by some other query?

    #52525
    Jeremiah
    Participant

    Hi Jonah,

    I had been using this paged query in the single-venue.php file via template override while I was testing the archive idea. With the paged query in place on that template, I think the resulting problem I’m seeing is being caused by a rewrite rule associated with the tribe_venue custom post type?

    The client has asked for a paged archive of previous events, limited to a single venue, in addition to a separate page of upcoming events for the same venue. The upcoming events page for this single venue is simple to implement with the single-venue.php template. But how to create the ‘archive’ of previous events as a paged query?

    I’m starting to think the solution is a custom page template outside of the plugin’s templates and some URL rewriting to make it fit into (resemble) the URL structure of the plugin’s pages. Am I doing this right?

    #52633
    Jonah
    Participant

    Hi Jeremiah,

    Hmmm, a separate page might work but the URL rewriting seems like it will be difficult… I’m not quite sure why the query you provided is not working in the single venue template. Maybe you need to reset the query before you run it? Unfortunately we can’t really provide support for this type of customization. You’ll need to keep playing around with it and hopefully try to figure it out on your own. Good luck!

    – Jonah

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘WP_PageNavi only showing first post(s) for each page’ is closed to new replies.