Anyone else tried to move a wordpress installation and had to get their SQL code books out to change the GUID on every item, when their IDs are enough to access them inside the admin or outside on the website?
the_permalink() and $post->guid
should simply access the url from get_option('siteurl'), the the ID number from the element being accessed...