Pagination for pages
-
Hi all, I’ve taken over a site from another developer (who has vastly more skill than me!) and I can’t figure out how to get the pagination working on certain pages. The page in question displays a list of pages (each item in the list is a course that the user can purchase) & each course is set up as a page (as opposed to a post).
He had written some custom pagination code but this doesn’t work.
It may have something to do with this line:
echo '<a style="'.$highlight.'border:1px #ccc solid;padding:2px 5px;display:inline-block;margin:6px 4px;" href="/index.php?page_id=29&paged='. $x. '" class="page larger">'. $x. '</a>';
I suspect where he has added the url in that line might be a problem as I don’t think that page exists anymore. It also seems quite a complicated way of doing it?
The full code is here:
https://pastebin.com/BFQrvknCIf someone could have a look at the code I’d be most grateful!
- The topic ‘Pagination for pages’ is closed to new replies.