Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End multiple loop issue – previous posts page is wrong!? Re: multiple loop issue – previous posts page is wrong!?

#69350
silvers
Member

ok so i have been on a wordpress forum and got this info…

<?php
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
if ($paged < 2) {
// DO STUFF
}
?>

The guy basically said that this would say that this would check if it was page 1, and do stuff accordingly. I had a quick go and couldn’t work out how to use it with 2 loops because my knowledge is pretty lacking!

what do you think Doc? or anyone else that fancies being my hero!?!!?

Thank you!