I have a custom page that calls a function - say generatelist
the generatelist functions call get_pages() and loops through the array using for each and building a list containing various data from the meta data of the pages (yes pages, not posts! for a reason)
the functions returns the list (actually a catalog of pages) and echoes it into the content area of the custom page.
since the list is becoming longer and longer (as more purchase pages are added) I want to add pageination to the list (while keeping the rest of the page, including custom pages that comes after the list and of course the rest of the theme:footer,sidebar etc)
I saw PageNavi plugin but didn't figure out where should I use the template tag, and how do I control the number of entries before pagination.
this question is similiar to this one but that didn't really get an answer.
be glad to any help with this (actually I'm not a php guy, more of a python type, but built this plugin to help a friend and now need to scale this up)