Paginate results from data fetched through array

Okay! I fixed it all by myself. Adding it here so that it can help others looking for a solution.

For all things ‘posts’ (and post types), WP_QUERY is your friend. Do go through all the arguments it accepts. I found out that the parameter ‘post__in’ accepts the IDs of the posts and then fetches those posts for you. You can paginate them easily.

I simply pass my $eventList array to ‘post__in’ parameter and it does what I was trying to do.

tech