Skip to:
Content
Pages
Categories
Search
Top
Bottom

pagination within my plugin shortcode

  • @firetag

    Participant

    I am developing a high scores like thing for one of my plugins and I need to have an overflow list of pages for like say the next one hundred people and so on…

Viewing 7 replies - 1 through 7 (of 7 total)
  • @anonymized-96400

    Inactive

    so what’s your question, mate?

    @firetag

    Participant

    oh ha I guess i didn’t really ask anything…I was wondering how one would go about created different page number links like 1,2,3,4…246,247 that kind of a thing like at the bottom of google but just being inside of a function so i can use shortcode…should i use php get functions or something similar?

    @boonebgorges

    Keymaster

    Use paginate_links() https://codex.wordpress.org/Function_Reference/paginate_links. It’s not very easy to use (IMHO) but it’s better than doing it from scratch.

    @firetag

    Participant

    oh ok that’s exactly what i was looking for..I saw this in the skeleton plugin, but I didn’t know what all the parameters were and what the function name was..

    @anonymized-96400

    Inactive

    Yep, use paginate_links, like Boone suggested. I find its quite easy to use, once you got it, that is. Have a look at the various BP loops on how they handled it. Those helped me understand it…

    @boonebgorges

    Keymaster

    +1 @travel-junkie – I learned whatever I know about paginate_links() by seeing how BP uses it.

    @anonymized-96400

    Inactive

    Yeah, I never even knew paginate_links existed before working with BP :)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘pagination within my plugin shortcode’ is closed to new replies.
Skip to toolbar