Support » Plugin: Post Grid » Pagination / current page error

  • Resolved DesignsAndCode

    (@designsandcode)


    Hi there

    I am trying to work with your plugin (great btw!) and was getting some issues.

    After diving deeper, I realise it’s because of your pagination code in:

    post-grid/grid-items/nav-bottom-new.php

    You use the function paginate_links, which gets the current page variable from the global $paged, however, you forgot to init it as a global.

    Simply adding global $paged; above paginate_links allows the current page to be set properly.

    In case you’re interested – I develop a filter plugin and am just getting the two to play nicely 🙂 So now I can use your plugin to layout the search results from my plugin.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author PickPlugins

    (@pickplugins)

    Thanks for your suggestion, i will try this and let you know how it works.

    Regards

    Hi there

    Did you manage to take a look at this?

    I’ve done a write-up on it, and I’m getting a few users coming back to me with the pagination issue.

    https://searchandfilter.com/documentation/3rd-party/post-grid/

    Hope it can be resolved!

    Thanks

    Plugin Author PickPlugins

    (@pickplugins)

    Hi, sorry for late reply, I was busy with some other project can’t move on, I just updated the plugin as you suggested, can you please try the latest version and let me know.

    Glad to see you writing up with Post Grid plugin.

    Regards

    Fantastic, will test shortly 🙂

    Hey sorry I didn’t get back to you.

    I did test it, and it does work, fantastic 🙂

    If you’d like a copy of our plugin get in touch via our contact form (in the footer) and I’ll be happy to send one.

    http://searchandfilter.com/

    Thanks

    Hi again

    So, I’m getting a few reports of users’ using your premium version, and having pagination issues when combined with our plugin.

    Can we open up a dialogue about getting these working together?

    Whats the best way to contact you outside of the wordpress forums?

    Thanks

    Ahh, I realise it’s the same issue 🙂

    However in your premium version, I think the nav bottom is located in post-grid/templates/nav-bottom.php right?

    Adding a global $paged; anywhere before the first paginate_links call seems to fix it.

    Let me know if it’s possible to include this, and then I can update our users’.

    Thanks

    Plugin Author PickPlugins

    (@pickplugins)

    Hi, sorry for the late reply, yes file path is correct.

    REgards

    Hi again

    Thanks for the reply.

    My request is, if you can make the same change you made previously for me on the free version, to your premium version, as we’re getting users’ having issues when they upgrade to your premium, and it no longer working with our plugin.

    Hope that makes sense?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Pagination / current page error’ is closed to new replies.