I made a customized index.php so that I have multiple loops on the same page so that the content can be displayed differently. I got this to work, however the pagination is broken. Despite several hours of Googling and trying all sorts of things, I can't get it to work. Subsequent pages just display the same thing as the home page.
I'm also using the WP-PageNavi plugin to do the pagination at the bottom. Each subsequent page is correct in the address bar and at the bottom of the page according to the plug-in, but the content is the same on every page.
I understand that you cannot have 'paged' and 'offset' at the same time, but I have absolutely no understanding of how to fix it.
Here is the code:
<!-- First Loop -->
<div id="first-post">
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=1'.'&paged='.$paged);
?>
<?php $posts = get_posts('numberposts=1&offset=0'); foreach ($posts as $post) : start_wp(); ?>
<?php static $count1 = 0; if ($count1 == "1") { break; } else { ?>
<!-- post stuff -->
<?php $wp_query = null; $wp_query = $temp;?>
<?php $count1++; } ?>
<?php endforeach; ?>
</div> <!-- close first-post -->
<!-- Second Loop -->
<ul class="two-col">
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=4'.'&paged='.$paged);
?>
<?php $posts = get_posts('numberposts=4&offset=1'); foreach ($posts as $post) : start_wp(); ?>
<?php static $count2 = 0; if ($count2 == "4") { break; } else { ?>
<li>
<!-- post stuff -->
</li>
<?php $count2++; } ?>
<?php endforeach; ?>
</ul> <!-- close two-col -->
<?php $wp_query = null; $wp_query = $temp;?>
<!-- Third Loop -->
<ul class="three-col">
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('showposts=6'.'&paged='.$paged);
?>
<?php $posts = get_posts('numberposts=6&offset=5'); foreach ($posts as $post) : start_wp(); ?>
<?php static $count3 = 0; if ($count3 == "6") { break; } else { ?>
<li>
<!-- post stuff -->
</li>
<?php $count3++; } ?>
<?php endforeach; ?>
</ul> <!-- close three-col -->
<?php $wp_query = null; $wp_query = $temp;?>
<!-- End All Looping -->