I make a migration to another server with duplicator and I have a bug with the URL when I call this :

 <a href="<?php echo $prev_post->guid ?>"><?php echo $prev_post->post_title ?></a>

As result, the URL is old and I want new URL.

  • You should be using the permalink not the GUID
    – Tom J Nowell
    Jul 11, 2017 at 18:10
  • ok it's work with the Velvet Blues Update URLs thank you Tom !
    – sbzc
    Jul 11, 2017 at 18:29


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.