Home › Forums › Pro Support › Output Custom Field in Div Class › Reply To: Output Custom Field in Div Class
May 27, 2019 at 4:57 pm
#9552
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>';