WordPress.org

Support

Support » How-To and Troubleshooting » How to make next_post_link() and previous_post_link() works like this?

How to make next_post_link() and previous_post_link() works like this?

  • I just want to make a navigation like this:

    <link rel="next" title="Next Post" href="<?php next_post_link(); ?>">
    <link rel="prev" title="Previous Post" href="<?php previous_post_link(); ?>">

    but once it was running it truned to:

    <link rel="next" title="Next Post" href="<a href="http://localhost/next-post/">Next Post</a> &raquo;">
    <link rel="prev" title="Previous Post" href="&laquo; <a href="http://localhost/previous -post/">Previous Post</a>">

    anyone?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make next_post_link() and previous_post_link() works like this?’ is closed to new replies.