Does your themes index.php file contain this template tag?
http://codex.wordpress.org/Template_Tags/previous_post_link
It looks like it does not. I tried to plug it in a couple times and couldn’t get it to come out right. any chance you could help? here is the code for my index.php
<?php get_header(); ?>
<?php include(TEMPLATEPATH."/sidebar.php");?>
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<a name="TemplateInfo"></a>
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php the_content(__('Read more'));?>
<!--
<?php trackback_rdf(); ?>
-->
<p class="post-footer align-right">
<a href="<?php the_permalink() ?>" rel="bookmark" class="readmore">Read more</a>
<a href="<?php the_permalink() ?>" class="comments"><?php comments_number('No Comments', 'Comments (1)', 'Comments (%)' );?></a>
<span class="date"><?php the_time('M j, Y'); ?></span><br />
<b>Category:</b> <?php the_category(', ') ?>
<?php if ((function_exists('get_the_tags')) ) { the_tags(); } ?>
</p>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php get_footer(); ?>
Thanks so much
Baron
Hmm, also the individual posts pages don’t have the next/orevious post either. where would i plug them in?
thanks,
Baron
Try replacing this:
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
With this:
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
im not too worried about the individual posts thing though, readers can deal, haha.
baron
getting there, take a look. for me, i can only see older entries, not newer entries.
thanks so much
baron
oh wait, its perfect. i need to actually have newer posts to see the link of course. thanks so much. couldnt have done it without you