i have read and tried that many times, however since i am trying to put together a brand new theme, it doesnt work. i read it must be placed within the loop (i am using the default loop.php file from twentyten) and then the code in my sidebar is:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<p><?php wp_link_pages('before=<p>&after=</p>'); ?></p>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
what am i doing wrong? thanks!