images (2 posts)

  1. germinus1
    Posted 3 years ago #

    Not really sure how to explain this, I have various pages that have images on, I have been transfering these pages from joomla to WP by copying and pasting the html. So the image path was for example

    <td><img src="images/stories/passed/Chris_passed_17th_May_2012.jpg" alt="Chris_passed_17th_May_2012" width="360" height="480" border="0" /></td>

    I have copied this to WP and made sure the relevant folders are present in the joomla root. The above code is part of this page...


    The images are not showing, now for some reason WP is putting part of the url as the image path. So the image path that was


    is now


    Yet when I go to edit page in the html it still has the path as images/stories/passed/Chris_passed_17th_May_2012.jpg

    I decided for a quick fix I would just add the folders in the root to match the image path, however as soon as i did that I got a 404 error when viewing the page which makes no sense at all! As soon as i deleted the folders from WP root I could then view the page again???

    Any ideas?

  2. Rachel Baker
    Posted 3 years ago #

    Add a beginning '/' to your image urls.

    Instead of the pasted relative path of:


    you can use:


    the beginning '/' points to your domain root.

    Now the BEST solution here would really be to use the WordPress bloginfo function to correctly set the path to your images.

    Good explanation of relative path urls: http://www.boogiejack.com/server_paths.html

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.