Home › Forums › Pro Support › Output Custom Field in Div Class › Reply To: Output Custom Field in Div Class
May 24, 2019 at 5:57 pm
#9525
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="" />';