Title: Lost permalink on migration
Last modified: March 19, 2023

---

# Lost permalink on migration

 *  Resolved [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/)
 * Hello,
 * I have migrated to a new domani. The site’s permalink all work except thouse 
   between CPT, they direct me to the old domain. What can I do?
 * Thanks

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16576253)
 * Hi [@jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * Static links within your site content won’t change but the site menu’s should.
   
   It’s best to do a find and replace action in your database.Handy plugin for this:
   [https://wordpress.org/plugins/better-search-replace/](https://wordpress.org/plugins/better-search-replace/)
 * Make sure you backup everything!
 * Cheers, Jory
 *  Thread Starter [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16576810)
 * Thanks Jory,
 * I have tried with “Better Search Replace” but with the ralationships links don’t
   work. Another way?
 * Best regards
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16576849)
 * Hi [@jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * Links created automatically through relationships should work without modifications.
   This is assuming you are using the `permalink` and didn’t create your own link
   formatter.
 * Could you check how the URL is genereated?
 * Cheers, Jory
 *  Thread Starter [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16577120)
 * Thanks again Jory,
 * Sorry I don’t have enough knowledge. I can say if I stablish a relationship between
   a two old Custom Post, like (Author:) J.K. Rowling and (Book:) Harry Potter, 
   the link send me to the old domain. With the inspector I can see the old domain,
   and the templates of CPT have the name of the fields and Pods (of course).
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16577481)
 * Hi [@jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * Please share this template-part so we can check the code that is used to create
   the link.
 * Thanks, Jory
 *  Thread Starter [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16577691)
 * Is that ok?
   Example 1: [each editorial][{@editorial.post_title}](https://wordpress.org/support/topic/lost-permalink-on-migration/{@editorial.guid}?output_format=md)[/
   each]
 * Example 2: [each sobre_fotografo] <button class=”button”>[{@sobre_fotografo.post_title}](https://wordpress.org/support/topic/lost-permalink-on-migration/{@sobre_fotografo.guid}?output_format=md)
   </button> [/each]
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16577794)
 * Hi [@jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * No this is referring to the post title, not a link.
 * There should be some part in the template where you fill the `href` tag with 
   a link to the post.
 * Cheers, Jory
 *  Thread Starter [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16577819)
 * 
   sorry, that is.
 * 
   Example 1:
 * [each editorial] <a href=”{@editorial.guid}”>{@editorial.post_title}</a>[/each]
 * 
   Example 2:
 * [each sobre_fotografo]
 * <button class=”button”><a class=”boto” href=”{@sobre_fotografo.guid}”>{@sobre_fotografo.
   post_title}</a></button>[/each]
    -  This reply was modified 3 years, 2 months ago by [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/).
    -  This reply was modified 3 years, 2 months ago by [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/).
    -  This reply was modified 3 years, 2 months ago by [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/).
 *  Thread Starter [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16579640)
 * I have news,
 * I have tried to change the template in “Auto Template Options >Singular Template”
   and it uses the old one.
 *  Plugin Author [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16579669)
 * Hi [@jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * I see you are using `guid` in your templates. This is not advices as the guid
   is never, ever changed. Even if you change your post URL the GUID will stay the
   same.
 * Please read the documentation thoroughly and check our introduction videos to
   get a proper understanding how Pods (and with that, WordPress) works.
 * [https://docs.pods.io/displaying-pods/magic-tags/using-magic-tags/#Using_Built-In_WordPress_Fields](https://docs.pods.io/displaying-pods/magic-tags/using-magic-tags/#Using_Built-In_WordPress_Fields)
 * [https://docs.pods.io/videos/grow-beyond-posts-pages-introduction-pods-framework/](https://docs.pods.io/videos/grow-beyond-posts-pages-introduction-pods-framework/)
 * Cheers, Jory
 *  Thread Starter [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * (@jordiwordpress)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16580025)
 * Hi Jory
 * I really don’t have deep knowledge of wordpress, but I just changed “guid” to“
   permalink” and everything works perfectly. it was just that.
 * Thank you so much

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Lost permalink on migration’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [migration](https://wordpress.org/support/topic-tag/migration/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * 11 replies
 * 2 participants
 * Last reply from: [jordiwordpress](https://wordpress.org/support/users/jordiwordpress/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/lost-permalink-on-migration/#post-16580025)
 * Status: resolved