For some Canadians, particularly those who live near floodplains or the coast, adequate home insurance may become too cost-prohibitive or simply unavailable […]
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; } } ?>
For some Canadians, particularly those who live near floodplains or the coast, adequate home insurance may become too cost-prohibitive or simply unavailable […]