## custom post types – Two pagination in one page without AJAX

Question

So in this scenario, I’m trying to have a two pagination in one page, I have succedded doing that, in this specific page, I’m trying to display my custom post type and post at the same time in different <section> both of them have pagination.

The problem is when I try to proceed to paginate the result of my custom post type which I’ll get redirected to /page/2 the result of my post is also changing and displaying it’s paginate 2 results– vice versa.

but what I’m trying to achieve is when I go paginate results let say proceed to 2 of my custom post type result which will redirect me to /page/2 the post result shouldn’t change it should still display page 1 pagination result, while my custom post type is displaying page/2, without using AJAX or changing the format

This is the php code of my pagination

echo paginate_links(array(
'total' => $query->max_num_pages, 'current' =>$paged,