Support » Fixing WordPress » pagination dont go to next page

  • Resolved taghaboy


    i have two loop, and i’d like to paginat the results of 2end loop, why i dont work for me?

    Template Name: Movie
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<h2><?php the_title(); ?></h2>
    <?php endwhile; else : ?>
    <?php include (TEMPLATEPATH . "/page.nothingfound.php"); ?>
    <?php endif; ?>
    <?php query_posts('meta_key=categorie&meta_value=Movie');  ?>
    <?php while (have_posts()) : the_post(); ?>
    	<h2><?php the_title(); ?></h2>
    <?php endwhile; pagination(); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • taghaboy


    any idea pls.

    you’ve got a query in there, queries require pagination to be included:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array(
    	'post_type' => 've_products', // custom post type

    an example from my page with a query

    thanks for the help

    i post her the solution if any one have the some issu as me :

    <?php query_posts('category_name=xxx&showposts=xxx&paged='. $paged); ?>

    and now the pagination work fin in my page template where i loop posts.

    good luck

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pagination dont go to next page’ is closed to new replies.