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
-
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://ww.wp.xz.cn/plugins/better-search-replace/Make sure you backup everything!
Cheers, Jory
Thanks Jory,
I have tried with “Better Search Replace” but with the ralationships links don’t work. Another way?
Best regards
Links created automatically through relationships should work without modifications. This is assuming you are using the
permalinkand didn’t create your own link formatter.Could you check how the URL is genereated?
Cheers, Jory
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).
Please share this template-part so we can check the code that is used to create the link.
Thanks, Jory
Is that ok?
Example 1: [each editorial]{@editorial.post_title} [/each]Example 2: [each sobre_fotografo] <button class=”button”>{@sobre_fotografo.post_title}</button> [/each]
No this is referring to the post title, not a link.
There should be some part in the template where you fill the
hreftag with a link to the post.Cheers, Jory
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.
-
This reply was modified 3 years, 2 months ago by
jordiwordpress.
-
This reply was modified 3 years, 2 months ago by
jordiwordpress.
I have news,
I have tried to change the template in “Auto Template Options >Singular Template” and it uses the old one.
I see you are using
guidin 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/videos/grow-beyond-posts-pages-introduction-pods-framework/
Cheers, Jory
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
-
This reply was modified 3 years, 2 months ago by
The topic ‘Lost permalink on migration’ is closed to new replies.