Categories and Pagination
-
I purchased the Neko Pro theme and modded the front page a little.
I’m using this code to pull the posts from 2 main categories.
<tr> <td valign="top" class="cell-t" style="border:1px solid #ccc;">Latest Application Reviews</td> </tr> <tr> <td class="cell-h"> <?php $recent = new WP_Query("cat=5,68&showposts=10"); while($recent->have_posts()) : $recent->the_post();?> <fieldset><div class="cat-image"><a href="<?php the_permalink() ?>"><img style="padding:0px; margin:0px; border:0px;" height="150" width="150" src="<?php echo get_post_meta($post->ID, "Thumbnail", true); ?>" /></a></div><?php the_content_limit(300, ""); ?> <div style="display:block; text-align:right;"><b><a style="font-size:14px;" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> »</a></b></div></fieldset> <?php endwhile; ?> </td> </tr> </table></td> </tr>I had to limit it to 10 posts, because if not it would continue to list all of them down the page.
I am looking to treat this like the default blog style(so it will list 10 posts, and then show ‘previous posts’ and ‘next posts’ so the visitors can go back and read older posts.
Is this possible?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Categories and Pagination’ is closed to new replies.