I have a layout where I need to show the most recent post in a different layout/design component and remaining posts, needed to have a separate layout/design.
I also wanted to use pagination to show other posts instead of infinite scrolling because I do not prefer infinite scrolling.
Using the count modulus
was not going to be a viable option due to how the design needed to be implemented but I think it could work for someone with experience in PHP.
When using the offset
in the loop, it was changing on pagination so each page after the first page had different recent post.
This was troublesome but I think I have a solid working solution for having multiple loops it works for my needs.