• Hello,

    I’m adding previous/next post functionality and I’ve got this line in my functions.php:

    $html .= '<h6><a href="'. $post->guid .'">'. $post->post_title .'</a></h6>';

    This is used both for the previous post link and the next post link. I don’t want to use the guid, but the url or permalink. But everything I’ve tried -like permalink- doesn’t work because it uses the current post url. Do you know what could work instead of guid? Thank you.

    • This topic was modified 8 years, 2 months ago by benedetti.
  • The topic ‘Help with prev / next post link’ is closed to new replies.