Forums

[resolved] How to display post title when linking to the next in category (2 posts)

  1. pajtai
    Member
    Posted 2 years ago #

    Hi,

    On the single post pages, I want to display the next and previous posts in the category, but I want to use those posts' titles as the link text. How do you do this?
    <?php previous_post_link('&laquo; %link', ???, TRUE) ?>

    I've tried '%link', '', 0, etc.... but I can't figure out what to put for the link.

    http://codex.wordpress.org/Template_Tags/previous_post_link

  2. pajtai
    Member
    Posted 2 years ago #

    Ok, got it figured out:
    <?php previous_post_link('&laquo; %link', '%title', TRUE) ?>

Topic Closed

This topic has been closed to new replies.

About this Topic