I would like to display data from a post that has custom fields in a metabox. One of the fields is the URL for an image. How do I create an echo to display the image?
The other field I want to call is a link. I have one field for the URL and one field for the link text. How do I echo this to diplay the link.
Thanks,
14ner
Within your Query loop, using your image URL as an example, put this:
Replace “image-url-field” with the name of your custom field.
Then, also within that same loop, do this:
Reference: http://codex.wordpress.org/Function_Reference/get_post_meta
I think what we want might be something more like: