Older Entries link not working
-
Website: http://www.andrewweeksphotography.com/blog/
Problem: “Old Entries” link not working properly at the bottom of the page. When clicked it brings you to /page/2 (which shows the same posts) and when you continue to click the older entries link it keeps going to /page/2.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <? get_header(); ?> <div id="hr"></div> </div> <div class="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" <?php post_class();?>> <h2 align="center"><a href="<?php the_permalink(); ?>"><?php echo $post->post_title; ?></a></h2> <div class="c-head"> <img class="logo" src="<?php bloginfo('stylesheet_directory'); ?>/images/logo_108.gif" alt="Andrew Weeks Photography" /> <p class="date"><a href="<?php the_permalink(); ?>"><?php the_time('F j, Y') ?></a></p> </div> <div class="c-body"> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> <div class="clr"></div> </div> </div> <div class="c-foot"> <ul> <li><script language="javascript" type="text/javascript"> SHARETHIS.addEntry({ title:'<?php the_title(); ?>', url:'<?php the_permalink(); ?>', }, {button:true} ); </script></li> <li><span class="comment"><a href="<?php the_permalink(); ?>">Comment</a></span></li> </ul> </div> </div> <? endwhile; ?> <div class="navigation"> <div class="alignleft"><?php previous_posts_link('« Newer Entries') ?></div> <div class="alignright"><?php next_posts_link('Older Entries »') ?></div> </div> <? else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <? endif; ?> </div> <? get_footer(); ?> </body> </html>
Any help would be very much appreciated!
- The topic ‘Older Entries link not working’ is closed to new replies.