• Hi.

    I am trying to paginate a large list but receive the following error:

    Parse error: syntax error, unexpected $end in /usr/local/apache/htdocs/html/lcm_dev/wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 7

    This is the code that I am using:

    <ul>
    <?php $i=0; $recent = new WP_Query("cat=13&showposts=-1"); while($recent->have_posts()) : $recent->the_post();?>
    <?php $i++;?>
    
    <li><div class="latest_icon"><?php get_cat_icon('priority="true"');?></div><div class="latest_info"><b><a><?php the_title(); ?></a></b><?php swift_list_cats(2); ?><?php the_modified_date(); ?></div></li>
    <?php if( $i%5==0): ?><!--nextpage--><?php endif; ?>
    <?php endwhile; ?>
    </ul>

    Any ideas?
    Many Thanks

Viewing 15 replies - 1 through 15 (of 43 total)
Viewing 15 replies - 1 through 15 (of 43 total)
  • The topic ‘crashing site when used within loop displaying a list’ is closed to new replies.