I just ran into a problem on a photo site I have made with WordPress. The photo site is a photo web log where there are multiple authors that contribute one photo at a time (or so I prefer!). I don’ t know how to edit WordPress’s setup so that the upload process creates an image to a custom width rather than the default thumbnail. With that in mind, every author has to click ‘Write Post’ and then upload their pre-sized to 500px wide image to the site. From there they have to click on the ‘upload’ menu’s preview of their image. The one click brings up a menu on top of the photo that looks like this:
- Using Thumbnail
- Not Linked
- Send to Editor
- Delete
- Close Options
If you click on any of the items they will toggle to another option or execute the stated function. In my photo site’s case we change it to the following:
- Using Original
- Not Linked
- Send to Editor
- Delete
- Close Options
Then we press ‘Send to Editor’ and an img tag is sent to the Editor with the correct settings. Everything is as it should be (except that it excludes dimensions and that agitates the standards-loving person that I am, but I let it slide for the sake of ease of use). However, when using Internet Explorer 6 or 7 something funny happens.
- The ‘width=’ option IS being used, but without quotes around the contents (the same for the alt setting) and it’s set to ’96’ which is basically the thumbnail width.
- The file path to the ORIGINAL is provided in the alt specification while the src specification remains pointing at the thumbnail file.
My friend was banging his head against the wall trying to figure it out. Once I discovered this problem I simply suggested that he install Firefox. 😀
In conclusion, I don’t know a lot of people that use WordPress in this way, so maybe it isn’t very well known. Maybe it has something to do with my theme, but that shouldn’t be the case, since it’s within the admin side of the site. Anyway, maybe this write up will save somebody a headache.