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

#9525
Tom
Keymaster

Instead of this:

echo esc_url( get_post_meta( get_the_ID(), 'prod1', true ) );

Do this:

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