Multiple loops on archive page without breaking pagination
-
I have an site setup with 5 post types.
Each menu item leads to an archive page for it’s post type.
On the archive page, I want show 10 posts.
I want to have a loop for three different sections.
I want this for styling reasons.
I need 3 separate divs to contain the broken up loops so that I can style the sections differently.
These pages are paginated.
How I would normally go about this is by query – but this would involve offset and that breaks pagination because that is already used in the pagination process.
I’ve read the sections of the codex about multiple loops but I must be missing something.
I keep getting lead to
pre_get_posts
but I can’t make sense of it.
- The topic ‘Multiple loops on archive page without breaking pagination’ is closed to new replies.