0

I've exported data from my dev server and imported it to my prod server.
One template is listing child pages and uses $page->guid to get link to page.

The problem is that this link still points to my internal dev server.

Has anyone else had similar problems? And if yes, how do I solve it without having to edit my DB directly?

2

The GUID is not an URL. Use get_permalink() to get the correct URLs.

Just ignore the GUID. It is – as the name says – an identifier.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.