Title: Define upload images folder
Last modified: August 30, 2016

---

# Define upload images folder

 *  [jfambrini](https://wordpress.org/support/users/jfambrini/)
 * (@jfambrini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/)
 * I’m trying to move a static html site to WordPress one page at a time manually.
   I have installed WordPress in a sub-directory in the original site and now creating
   posts as per guidance received in this forum.
 * The original html site has an “images” folder where images are stored in sub-
   directories according to major categories. I have now copied this “images” folder
   in wp-content/uploads. When I try to access an image by typing: <img src=”images/
   xyz.gif”> it is not displaying. Any guidance would be appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Bloke](https://wordpress.org/support/users/bloke/)
 * (@bloke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401487)
 * Is the images folder like this?
    …/wp-content/uploads/images/ You need to work
   out where you uploaded images will be stored going forward. Such as date and 
   year. Then there are WP functions to display the directory path.
 *  Thread Starter [jfambrini](https://wordpress.org/support/users/jfambrini/)
 * (@jfambrini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401494)
 * Dear Bloke, Yes the images are in uploads directory of wp-content so path is:…/
   wp-content/uploads/images/. I’ve deselected “Organize my uploads into month- 
   and year-based folders” in Settings > Media. Images used in earlier posts are
   in month and year based folders but going forward I would like it to access them
   from the …/wp-content/uploads/images/ folder.
 *  [Bloke](https://wordpress.org/support/users/bloke/)
 * (@bloke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401569)
 * [https://codex.wordpress.org/Function_Reference/wp_upload_dir](https://codex.wordpress.org/Function_Reference/wp_upload_dir)
 *  Thread Starter [jfambrini](https://wordpress.org/support/users/jfambrini/)
 * (@jfambrini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401576)
 * Thanks for the link. I’m a rank newbie to WordPress and php so please indulge
   me and give me step by step guidance on how I would go about telling WordPress
   to access the images from …/wp-content/uploads/images/.
 *  [Bloke](https://wordpress.org/support/users/bloke/)
 * (@bloke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401590)
 * I don’t know if you are putting this directly in a post or page. Or are you putting
   it in a function? You can try this:
 *     ```
       $upload_dir = wp_upload_dir();
       echo '<img src="'. $upload_dir['basedir'] . '/images/xyz.gif" />';
   
       or this:
        echo '<img src="'. site_url() . '/wp-content/uploads/images/xyz.gif" />';
       ```
   
 *  Thread Starter [jfambrini](https://wordpress.org/support/users/jfambrini/)
 * (@jfambrini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401622)
 * Perhaps I did not make myself clear. I have a static html site where images are
   stored in an images folder. For instance in an article about Namibia the image
   is referenced in the site as following:
    <img src=”images/namibia_map.gif”>
 * When I copy content from html site to WordPress I want to reference this same
   image as either <img src=”wp-content/uploads/images/namibia_map.gif”> or <img
   src=”images/namibia_map.gif”>. I don’t want to type this php code in every post
   I make but showing wordpress where images folder is located so it can automatically
   reference it.
 * When I’m moving a static html site to Joomla. I store images in images folder
   and then reference them article by article by typing in html in Joomla and it
   will find it. This is useful when moving html code of an exisitng site. If a 
   post has 25 images, it is a big hassle to import images one at a time. I just
   copy the html code and images show up in Joomla. i would like similar functionality
   in Wordrpress.
 *  [Bloke](https://wordpress.org/support/users/bloke/)
 * (@bloke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401629)
 * This should work if you want to do it this way.
    `<img src='/wordpress/wp-content/
   uploads/images/xyz.gif' />` It depends on if you have wordpress in its on folder.
   But You should move away from HTML content so everything can be more flexible
   with dynamic links using PHP. If your URL changes you change one file and everything
   doesn’t break.
 *  Thread Starter [jfambrini](https://wordpress.org/support/users/jfambrini/)
 * (@jfambrini)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401632)
 * Thanks for the effort but sorry does not work. I pointed it to the folder where
   WordPress is installed but it does not display the image.
 * Your point about dynamic links is well taken. This is only for pre-existing content
   that is hundreds of pages with thousands of images to importing images in these
   pages is a lot of unnecessary work.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Define upload images folder’ is closed to new replies.

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 2 participants
 * Last reply from: [jfambrini](https://wordpress.org/support/users/jfambrini/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/define-upload-images-folder/#post-6401632)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
