How do I prevent one of two multiple loops from repeating on a second page?

You can use this

get_query_var('paged')

to check to see if you are viewing the home page, page 1, page 2 and so on. so you could put this around the first block so it doesn’t show after the first page (which I think is what you want):

if ( isset( get_query_var('paged') ) === false )
{
  //do page 1 stuff here.
}

get_query_var() is just returning whether the “paged=?” bit appears in your URL, so it will return nothing for the home page. I’m not sure whether it returns null or “” for the home page, you’ll have to check.

Leave a Comment