Pagnitation stops working after adding a second loop
-
Hi
I added successfully a secondary loop in my theme in home.php, but after that the pagnitation stop working , can any body helps methis is the code i use:
[please mark any posted code – http://codex.ww.wp.xz.cn/Forum_Welcome#Posting_Code – the code below is partially broken]
<?php query_posts('category_name=news &posts_per_page=3');?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_title(); ?> <?php the_excerpt ();?> <?php endwhile; endif; ?> <?php wp_reset_query(); ?> <?php query_posts('cat=-13,-15');?> <?php if(have_posts()): while(have_posts()):the_post();?> <?php the_time('F j, Y'); ?> <?php $category = get_the_category(); if($category[0]){echo '<a>term_id ).'">'.$category[0]->cat_name.'</a>';}?> <?php comments_popup_link( 'Няма коментари', '1 коментар', '% коментара', 'comments-link', 'Коментарите за тази публикация са изключени');?> <?php if (function_exists('has_post_thumbnail') && has_post_thumbnail()) the_post_thumbnail();?> <?php the_title(); ?> <?php the_excerpt ();?> <?php endwhile; endif;?> <?php posts_nav_link(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Pagnitation stops working after adding a second loop’ is closed to new replies.