Use loops in featured and popular posts template