Function set default image when image not present
You’d want to put the <img/> tag and all the necessary content for the default image after the final colon in the following line: $my_image = ( $image[0] != ” ) ? ‘ <img alt=”‘ . esc_attr( sprintf( the_title_attribute( ‘echo=0’ ) ) ) . ‘” title=”‘ . esc_attr( sprintf( the_title_attribute( ‘echo=0’ ) ) ) . … Read more