I accessed my site from other pc in my subnet, I checked the browser inspector and I realized that the url of the image in the browser starts whith localhost, no matter whether the address of my site is set with the hostname or with the host IP in general settings. Could anybody help me fix that?
-
This reply was modified 3 months, 2 weeks ago by
macosta.
The problem was that I had set localhost earlier, then I changed it to my hostname, but the guid
field in the wp_posts
table remained unchanged. I solved the problem this way:
UPDATE wp_posts SET guid = REPLACE(guid, 'http://localhost', 'http://hostname');
Thanks so much to vadubai for responding very quickly to my request and trying to help me.
Okay @macosta Good work if you resolved the issue yourself.
Hi everyone, Im new to wordpress and I would like to know what is commonly done in wordpress to get rid of these problem. I mean, I am developing my site in wordpress in my pc and I will upload it to a hosting site in the future, that means I will have to change de site url again. What do you normaly do to avoid the problem I had, other than develop the site in the hosting? Thanks in advance.