Display the thumbnail of a custom field picture

Display the thumbnail of a custom field picture

we take the id picture of the custom field:

$id_picture = get_post_meta( get_the_ID(),’image_1′ ,true )

$image1 = wp_get_attachment_image($id_picture, ‘thumbnail’);

 

 


Related Articles

tribe events calendar – change hover month event

I wanted to display also the venue – location name in the tooltip from the calendar The file that needs

Tribe events sidebar widget list – increase number of events displayed

I wanted more than 10 events to be displayed. The file that need to be changed is: wp-content/plugins/the-events-calendar/src/admin-views/widget-admin-list.php at line 20

Hote notice and warnings on wordpress

in wp-config.php replace the line: define(‘WP_DEBUG’, false); or maybe you have: define(‘WP_DEBUG’, true); with the lines: ini_set(‘log_errors’,’On’); ini_set(‘display_errors’,’Off’); ini_set(‘error_reporting’, E_ALL