Is there a way to add pagination?
-
Hi there,
Thanks for creating this plugin, I was wondering if there is a way to add pagination? I currently use this code snippet:
return collect((new \WordPressPopularPosts\Query([ 'limit' => 10, 'range' => 'monthly', 'order_by' => 'views', 'post_type' => 'cars', ]))->get_posts());
But I would like to add pagination to it so that all of the posts can be seen.
Thanks in advance!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Is there a way to add pagination?’ is closed to new replies.