Hi Could we please have the if condition in php.
Actually thanks for the post- I am facing the same issue- accidentally delete the image content in a custom field and now I am struggling to add one back
The code I have here is:
<img src=”<?php $i= get_post_meta($post->ID, ‘imageXXX’, true ); echo wp_get_attachment_url( $i ); ?>”alt=”information”>
Can you please tell what the condition (to check return value) will look like if I would have to add it here .