• I know there are tons of examples, I have spent hours trying going through them but I have no idea what I am doing wrong. I am trying to do the following…

    [Code moderated as per the Forum Rules. Please use the pastebin]

    But no matter what I try (which is every example I can find) the paging just does not show up at all. I am using a child theme of twentyTen.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jwack

    (@jwack)

    really????? How many lines of code was that?

    Thread Starter jwack

    (@jwack)

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $loop = new WP_Query( array(
    	'post_type' => 'projects',
    	'posts_per_page' => 2,
    	'orderby'=> 'menu_order',
    	'paged'=>$paged
    	) );
    while ( $loop->have_posts() ) : $loop->the_post(); some stuff... endwhile;
    <div class="navigation"><div class="alignleft"><?php previous_posts_link('&laquo; Previous') ?></div><div class="alignright"><?php next_posts_link('More &raquo;') ?></div></div>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paging in twentyTen with custom post type?’ is closed to new replies.