I'm planning on making a template page for a Wordpress theme that will load 5 separate "modules" within the content part of the page. These modules are intended to each show the latest 4 posts of different categories (to work similarly like this).
What is the best way to approach this for the loops?
As page.php will call the while have_posts loop to execute the template, the template php itself will have the five modules. Normally I would do a while have_posts to query, but doing this five times within one page inside a while have_posts seems like nothing but trouble.
Is there a more convenient way to achieve this?