How do I upload an image and display it in a post?
In the admin, panel, go to Options -> Miscellaneous and select the option to Allow File Uploads. If you need help with changing permissions, the following from the wiki should help:
Allow File Uploads: Choose whether or not to allow users, including you to upload files using WordPress(So they can upload files to link to from their articles). If file uploads are allowed, the few options related to this in the same page are applicable.
How to set your paths / permissions:
Once you have allowed File Uploads, download this tiny file: [http://www.tamba2.org.uk/downloads/absolutepath.zip]Unzip it, and upload the php file to your chosen uploads folder.
In your browser, go to your website http://www.example.com/youruploadsfolder/absolutepath.php
Copy the path address you will see. Note: You may need to add a trailling slash after it. Example: /home/.sites/90/site104/images would be /home/.sites/90/site104/images/
Click Uploads on the main screen (top right of the menu it is)
Enter the path address in the top box
Enter the web address to your uploads folder: http://www.example.com/youruploadsfolder in the second box.
Using ftp or your cpanel, CHMOD or change the file permissions on your uploads folder to 777 or 766 or 755
The uploads folder does not have to be in the same directory as WordPress
If you have trouble finding the absolute path, you can use the tool described here
Then check main menu across the top. Click Upload.
You may want to refer to the following two articles.
How to properly aligning the images.
How to create a drop-shadow effect, with alignment
7 Comments »
RSS feed for comments on this post.
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <code> <em> <i> <strike> <strong>
This didn’t answer how to display it in the post…
Comment by Anonymous — 9/12/2004 @ 7:33 pm
When you upload the file wordpress will display the html (<img src=etc etc) you need to insert into your post to display the image
Comment by Neerav — 10/1/2004 @ 6:58 am
I keep getting an eror message. However I have Cmoded everything to 777. When I use the absolutepath tool, I get a 403 error:, even thogh my uploads folkder is set to 777 - any suggestions???
Comment by Andreas — 10/20/2004 @ 5:00 am
Answer to #3 post. I had forgot to change the URI in options…
But now - I can upload , However when i Insert the genereted på WP nothing shows up in the post? Why is this? I have tried changing the filename etc.
Comment by Andreas — 10/20/2004 @ 8:18 am
I can upload an image but when I copy the absolute path of the file in WP I only see a blank page and not the picture. What am I doing wrong? Please help me!!
Comment by minlove — 1/24/2005 @ 11:18 am
When i upload a picture, it adds a “;” before the http. e.g.
anyone ?
Comment by scott — 2/23/2005 @ 3:04 am
I am receiving the following error when I try to upload a file.
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /www/myDirectory
Any clues to what it means?
Comment by Andy — 3/17/2005 @ 4:37 pm