WordPress.org

Ready to get started?Download WordPress

Forums

Modifying Next and Previous Post Links? (4 posts)

  1. umair
    Member
    Posted 6 years ago #

    Following are the functions used for displaying navigation links on the posts and pages.

    <?php previous_post_link('%link') ?>
    <?php next_post_link('%link') ?>

    Can i modify them so that if i am viewing a post from category "wordpress", nest and previous posts link point to next and previous post of the same category ???

  2. umair
    Member
    Posted 6 years ago #

    i have found this:
    <?php next_post_link('%link', 'Next post in category', TRUE); ?>

    Now i want that the link should post title as its anchor text. so what should i do with

    Next post in category

  3. umair
    Member
    Posted 6 years ago #

    any one >?

  4. umair
    Member
    Posted 6 years ago #

    no body helped :(
    but i found that this can be done by
    %link

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.