Slider feature
-
Hi. Back after a while with a question. I have been stumped by a simple thing and not sure how to proceed with it. I am trying to create a slider using a custom wp query:
$reviews = glsr_get_reviews([
‘assigned_posts’ => ‘post_id’,
‘status’ => ‘approved’, // value can be “all”, “approved”, or “unapproved”
]);This is sort of a basic way i have been pulling the reviews whilst i play around with it. I have 2 questions with it, firstly i understand ‘display’ will allow me to specify the amount it should fetch in one go. Any ideas how to incorporate that into a slider function so if one of the assigned pages has 500 assigned reviews, its not querying the 500 in one run?
Secondly, how do i add a pagination query to glsr_get_reviews? Whilst experimenting with it, i cannot seem to get any response from it.
Appreciate any direction you can give me on it, long time fan of the plugin and appreciate the work you have put into the plugin.
- The topic ‘Slider feature’ is closed to new replies.