WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 2 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

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.