Pagination Issue w/ Filter Bar

Home Forums Calendar Products Filter Bar Pagination Issue w/ Filter Bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #944441
    Drew Poland
    Participant

    Hey 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?

    #944443
    Drew Poland
    Participant

    Oh 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

    #944450
    Drew Poland
    Participant

    Hmm.. 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.
    #944490
    Gustavo Bordoni
    Keymaster

    Hi 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,

    #983765
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Pagination Issue w/ Filter Bar’ is closed to new replies.