Im having issues with pagination. Here is the bit thats calling for the post. When I try to use pagination on the homepage it works but creates all subsquent pages with the same snippet of content thats on the homepage. Category pagination works fine.
I've googled endlessly and the only thing I can find is that the WP-Query doesnt work with pagination. Does anyone have a solution I can use?
<?php $recent = new WP_Query("showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" width="128" height="128" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
<?php the_time('F jS, Y') ?> by <?php the_author(); ?>
<br>
Filed Under
<?php the_category(', ') ?>
<?php the_content_limit(260, ""); ?>
<?php endwhile; ?>













LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks