Home › Forums › Calendar Products › Events Calendar PRO › WP_PageNavi only showing first post(s) for each page
- This topic has 5 replies, 2 voices, and was last updated 12 years, 10 months ago by
Jonah.
-
AuthorPosts
-
June 27, 2013 at 11:24 am #52394
Jeremiah
ParticipantI’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/lkbbvvmJune 28, 2013 at 10:20 am #52457Jonah
ParticipantHi 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
June 28, 2013 at 11:56 am #52469Jeremiah
ParticipantI 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.
June 28, 2013 at 12:17 pm #52471Jonah
ParticipantHi 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?
June 30, 2013 at 5:47 am #52525Jeremiah
ParticipantHi 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?
July 1, 2013 at 3:04 pm #52633Jonah
ParticipantHi 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
-
AuthorPosts
- The topic ‘WP_PageNavi only showing first post(s) for each page’ is closed to new replies.
