Forums

Outside of Loop Navigation Questions (3 posts)

  1. barkins
    Member
    Posted 3 months ago #

    I'm using the following code,

    <?php $posts = query_posts($query_string); if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<?php previous_post_link(); ?> | <?php next_post_link(); ?>
    
    <?php endwhile; endif; ?>

    And although the links come up, the "<<" and ">>" next to the links are linked up. How do I make them links as well?

    Thank you

  2. vtxyzzy
    Member
    Posted 3 months ago #

    I think this is what you want:

    <?php previous_post_link('%link','&laquo; %title'); ?> | <?php next_post_link('%link','%title &raquo;'); ?>
  3. barkins
    Member
    Posted 3 months ago #

    Thanks vtxyzzy, that worked perfect!

Reply

You must log in to post.

About this Topic