1

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>
  • 1
    Please do not pastebin your code, post only the relevant parts in your question. – Wyck Feb 16 '14 at 13:33
  • I cant seem to put the code in the post? – AZBO Feb 16 '14 at 13:48
  • Why can you not put code in the post? – s_ha_dum Feb 16 '14 at 14:34
  • It only posts a small amount of it, the full loop is in the paste bin. – AZBO Feb 16 '14 at 15:01
  • You are not formatting the code correctly. I post code here all the time. It does work. Look for the {} button above the editor. Highlight your code and then click that button. Your question should not depend on a third party site. – s_ha_dum Feb 16 '14 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.