Static front page with recent posts pagination

Create a file front-page.php as a copy your index.php. Add the slider code on top of the page. WordPress will now take care of the pagination for you.

If you need the slider on the first page only wrap it into a conditional:

// First page
if ( empty ( $GLOBALS['paged'] ) or 1 == $GLOBALS['paged'] )
{
    // slider code
}
// the regular loop follows

Leave a Comment