We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Output Custom Field in Div Class Reply To: Output Custom Field in Div Class

#9552
Tom
Keymaster

Try this:

echo '<a href="' . get_permalink( get_the_ID() ) . '"><img src="' . esc_url( get_post_meta( get_the_ID(), 'prod1', true ) ) . '" alt="" /></a>';