WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] single post in certain Category (3 posts)

  1. yeleek
    Member
    Posted 6 years ago #

    Hi,

    Single.php currently has the following at the top, which links to the next/previous post in any category. How can i alter it to only link to the next or previous posts in the same category?

    <div class="navigation">
    <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
    </div>

    Thanks

  2. moshu
    Member
    Posted 6 years ago #

  3. yeleek
    Member
    Posted 6 years ago #

    Thats spot on - thank you Moshu

Topic Closed

This topic has been closed to new replies.

About this Topic