jwack
Member
Posted 10 months ago #
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.
jwack
Member
Posted 10 months ago #
really????? How many lines of code was that?
jwack
Member
Posted 10 months ago #
$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('« Previous') ?></div><div class="alignright"><?php next_posts_link('More »') ?></div></div>