WordPress.org

Support

Support » Themes and Templates » WP3 & twenty ten: changing URL breaks custom background & post images??

WP3 & twenty ten: changing URL breaks custom background & post images??

  • aaronoppenheimer
    Member

    @aaronoppenheimer

    Hi all,

    – I set up a 3.0 site on a local server, using “localhost” as base of URL, works fine
    – I changed the url on the Settings panel, using name of machine instead of “localhost”
    – background image reference, and post image references, still have “localhost” in URLs

    Something’s not being updated properly? Or am I missing some step?

    thanks
    Aaron

Viewing 4 replies - 1 through 4 (of 4 total)
  • Chris_K
    Member

    @handysolo

    If you have stuff set to “localhost” and then try to view the site from another machine, things will definitely not work as expected nor desired.

    Do keep in mind that everything machine thinks that its name is localhost. Thus, images won’t be found since the machine you’re viewing from is looking for images on itself…

    So, for your testing, either do all your viewing from the machine hosting the site or change the URLs under General Settings to be resolvable DNS names.

    aaronoppenheimer
    Member

    @aaronoppenheimer

    Yes, I understand. In fact, that’s what showed the problem – when I changed the address in the settings pane from ‘localhost’ to something resolvable, not everything changed – the background image kept ‘localhost’ in its URL, as did any image in a page. Seems to me that if the URL of the site is changed, all references to media should change too. Interestingly, the URLs for thumbnails returned by ‘get_the_post_thumbnail’ did change properly.

    Aaron

    Chris_K
    Member

    @handysolo

    At Settings -> General there are two URLs — did you change both to a DNS name?

    aaronoppenheimer
    Member

    @aaronoppenheimer

    I did. Tried with both a resolvable name, and the ip address of the host, with the same results.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP3 & twenty ten: changing URL breaks custom background & post images??’ is closed to new replies.