I want to apply  pagination  as given above when pages are >5  with arrow icon on both sides and first two and last two pages link with dots between them?

How to achieve the same?

Hi Shubham Agarwal


Try change this value:


To 2.