Home › Forums › Calendar Products › Filter Bar › Pagination Issue w/ Filter Bar
- This topic has 4 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
February 23, 2015 at 6:37 pm #944441
Drew Poland
ParticipantHey all!
I just installed the filter bar on a site and it’s working out of the box, except I have an issue with pagination. I’m using WP Page Navi, and when you filter results it shows 4 pages regardless of what gets returned..
When I remove PageNavi and let TEC paginate nothing shows up. No pagination at all. I’m willing to use whatever is built in and just style it, as long as it all works with the filter bar.
I’m including a link, if you click on “SJ Venue” only 2 results should show. And only 2 do. But you’ll see pagination shows up though it’s set to show 4 per page.
Gist of list.php: https://gist.github.com/bmoredrew/49404afb6cfb1731a27d
default-template.php is unedited sans for adding some html.
Thoughts?
February 23, 2015 at 6:41 pm #944443Drew Poland
ParticipantOh also, my page title changes to Undefined when using the filter bar.
https://www.dropbox.com/s/zve1va91g5loo7m/Screenshot%202015-02-23%2018.40.57.png?dl=0
February 23, 2015 at 7:33 pm #944450Drew Poland
ParticipantHmm.. looks like I figured it out. For whatever reason I needed to move list/nav inside loop.php from content.php and remove PageNavi.
But still 2 questions:
- Anyway to use pagenavi out of the box (I just want numbers instead of prev/next really)?
- Possible to remove Previous link from showing Past events? I only want to show Upcoming.
February 24, 2015 at 5:16 am #944490Gustavo Bordoni
KeymasterHi Drew,
Thanks for reaching out to us.
I would say that your best bet of making the WP-PageNavi work is to take a look at how their core function works and then try to place it in the right spot, I don’t have a good answer of how to it without testing.
On our tribe_has_previous_event function we do some logic that is related to the past events, so the code below is only a copy the function without having any checks for the past events, so it should work, but I haven’t fully tested.
https://gist.github.com/bordoni/c9af7cdced204155a6e7
If this doesn’t work, please reply and I will try to help you further.
My Best Regards,
July 7, 2015 at 6:31 am #983765Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Pagination Issue w/ Filter Bar’ is closed to new replies.
