Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
    
Yeah, that's what I did in the end. Thanks :) –  Steven Sep 11 '12 at 9:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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