In the content template for the custom field you would use the "Insert form field" drop down that appears just above it and select the image field, it will then show a second drop down to select the size. See this screenshot:
You pick the size of the image you want to insert into the custom field. Don't pick one of the sizes with the alignment options, those are for when you are inserting it into the post body because it includes the HTML markup to do those standard WordPress alignments. So just pick the size type.
Once you do that it will then insert a form field variable that will look something like this:
Now we need to do a minor manual adjustment to the variable. If you leave it as is it's going to put markup in the custom field and wrap the image in an HTML img tag, it isn't going to output just the SRC url to the image itself. To output the SRC url to just the image itself as the value of the custom field we would modify the variable. See this screenshot:
So by changing our post image variable from something like this:
It will not output the full URL path to the image rather than the HTML markup that displays the image.
Please keep in mind the variable names are form specific to my examples above may not work on your form.
Posted 8 years ago on Thursday February 17, 2011 | Permalink