Using custom field to change alt text for a featured image

I think you gave the answer in your last comment. if (get_field(‘alt_image_f’)){ $post_thumbnail_attr = array(‘alt’ => get_field(‘alt_image_f’) ); the_post_thumbnail( ‘full’, $post_thumbnail_attr ); } else the_post_thumbnail(); Cleaning up your code a bit, the following should work $custom_image_alt = get_field(‘alt_image_f’); $post_thumbnail_attr = array(); if ($custom_image_alt) { $post_thumbnail_attr[‘alt’] = $custom_image_alt; } the_post_thumbnail(‘full’, $post_thumbnail_attr);

How to link to img src using HTML email template in WordPress

You are trying to link the image to a relative path ../wp-content/. For the link to work in an e-mail, where the path isn’t known to the reader, you must use the complete full path including http:// or https://. Like this: http://yoursite.com/wp-content/uploads/2017/10/logo-full.jpg

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)