We are moving a large newspaper website from Drupal to WordPress and my last coding tweak involves displaying the legacy caption information from images in article posts. The caption information is included in "alt" and "title" attributes in the HTML for these images, so I basically need to display this info in the template for article posts. Any suggestions on how to set this up? Here is some sample code from an image in an article:
<img src="/directory/image/00%202016%20NEWS%20PHOTOS/12%20December/match%20race%20waterfront.jpg" alt="Boats dash past the Charlotte Amalie waterfront during Sunday's CAMR action. (Photo provided by the Carlos Aguilar Match Race)" title="Boats dash past the Charlotte Amalie waterfront during Sunday's CAMR action. (Photo provided by the Carlos Aguilar Match Race)" width="280" vspace="4" hspace="8" height="187" border="1" align="left" />
What we want to do is display that text from the "alt" or "title" attributes as captions under the images. This needs to be set up for 100,000 legacy article posts on the sites.