@rjmackay What is the reason behind this line? Make a copy of `$posts_query` to get the total records before you manipulate the `$post_query` object further?