• Resolved espressoguy

    (@espressoguy)


    I’m trying to create a template installer for multiple similar sites (using 2.9.2). The base site (that the others will be based-on) has many images. I can export an XML file of the whole site, however I’d like to make the images movable/portable also. The problem is that when I add an image to a post, the path to the image includes the entire original URL. If I export this (as xml) and then import it into the new site, the path will still be pointing to the images on the previous site. Is there a clean way to make the whole site portable so that the image paths will point to the new location?

    None of the How-To’s seem to address this issue specifically

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter espressoguy

    (@espressoguy)

    Bumpity-Bump !!

    Does anyone know an answer to this question?

    Thread Starter espressoguy

    (@espressoguy)

    Okay, I figured out the solution to this problem. Note that step 3 below may require technical knowledge not available to non-technical users of WordPress.

    1. First, in WordPress admin panel, make sure that the path to each image in every post is a relative path …ie it should start with wp-content/uploads/
    2. Now export the site to the XML file.
    3. Some of the paths in the XML file will still be absolute paths (in the html “anchors”). At this point these relative paths should be changed by search-and-replace (preferrably using “regular expressions” or a script).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Template (with images) for multiple similar sites’ is closed to new replies.