I am creating a custom page template in wordpress and adding a picture using a custom area. Such as this:

    <img src="<?php echo bloginfo('url') ?><?php echo get_post_meta($post->ID, 'main_picture', true); ?>" />

I am putting the road to the look inside a custom area.

The look is submitted with the custom panel therefore the custom files may have a Title of 'main_picture' along with a worth of the upload path, like so - 'wordpress/wordpress-content/uploads/2012/01/mypic.png'

I'd would rather have the ability to reference the look by title, and extrapolate the look url from that title.

Is the fact that possible?

Tell me if my question does not seem sensible. I am quite a new comer to wordpress. ----------------------edit----------

I understand that while using image title isn't a good idea, because it will not continually be unique. Im attempting to make it as being easy around the client as you possibly can. They are likely to be cautious about using custom fields, image names would be the simplest factor to allow them to understand.

Perhaps you should try carrying this out with wordpress plugin. I would recommend Advanced Custom Fields

I'd suggest ditching custom fields entirely then and creating your personal metabox interface for uploading images and naming them etc. The response to your question from unknown_guy is a great start. Custom fields really are a garbage consumer experience imho.

And therefore are you speaking about obtaining the client to place the look in to the publish content? If that's the case, mix a metabox ui having a shortcode interface. Something which once the client has completed the needed fields for image, title etc, provides them some code to 'paste' or place where they would like it to appear.

Metabox lessons:

http://www.farinspace.com/how-to-create-custom-wordpress-meta-box/ http://wp.tutsplus.com/tutorials/plugins/how-to-create-custom-wordpress-writemeta-boxes/ http://www.deluxeblogtips.com/2010/04/how-to-create-meta-box-wordpress-post.html