I have a home page with four different loops (different category’s)
On one of the loops I want it to display five posts but also have the infinite scroll on it.
I have installed the infinite scroll plugin but for the life of me I can’t get it to work.
Here is my code for the loop:
<div class="row">
<div class="span2">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'gabfire' ), the_title_attribute( 'echo=0' ) ); ?>" class="thumbnail"><?php $url = wp_get_attachment_url(get_post_thumbnail_id($post->ID,'thumbnail') ); ?><img src="<?php echo $url ?>" alt=""></a>
</div>
<div class="span4">
<h4><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permalink to %s', 'gabfire' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_title(); ?></a></strong></h4>
<p><?php the_excerpt(); ?></p>
<p>
<i class="icon-user"></i> by <?php echo get_the_author(); ?> | <i class="icon-calendar"></i> <?php the_date(); ?> | <i class="icon-tags"></i> Cat: <a href="<?php echo esc_url( $category_link ); ?>"><?php $category = get_the_category(); echo $category[0]->cat_name;?></a>
</p>
</div>
</div>