Nov. 11
Honouring those who sacrificed for our freedoms […]
Read More… from Remembrance Day
function post_thumbnail_html_func( $html ) { $post_type = get_post_type(); if ($post_type == "post"){ if ( has_post_thumbnail() ) { $id = get_post_thumbnail_id(); $alt_text = get_post_meta( $id, '_wp_attachment_image_alt', true ); $html = str_replace( 'alt=', 'title="' . esc_attr( $alt_text ) . '" alt=', $html ); } else { } return $html; } } ?>