Paginate HTML table with Posts Per Page
-
Basically, I use the following query to retrieve a list of movie reviews:
‘<?php $loop = new WP_Query( array( ‘post_type’ => ‘movie-reviews’, ‘posts_per_page’ => 10 ) ); ?>’
I then populate an HTML table with the data retrieved. Here’s my question. Obviously, I can change the number of reviews displayed in the table by simply changing the posts_per_page number.
But how do I get multiple pages to show up? So, for example, if I have 30 reviews then I want something at the bottom of my table that shows different page numbers that can be clicked on.
Thanks in advance for any and all help!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Paginate HTML table with Posts Per Page’ is closed to new replies.