I am migrating a Wordpress site to Ghost. In wordpress I would use the “title” field of the image and display it as a caption. How does ghost encode the caption for an image, directly in the HTML? So that I can massage the XML export from Wordpress to include it in a way that ghost would display it?
<img src="http://www.pawsontheroad.com/wp-content/uploads/2016/12/IMG_7087.jpg" title="Why is that tractor driving our plane Papi?" width="500" height="666" class="aligncenter size-full wp-image-5705" />
I assume it would be transforming the above into something like:
<figure>
<img src="http://www.pawsontheroad.com/wp-content/uploads/2016/12/IMG_7087.jpg" alt="Why is that tractor driving our plane Papi?" width="500" height="666" class="aligncenter size-full wp-image-5705" />
<figcaption>Why is that tractor driving our plane Papi?</figcaption>
</figure>
I don’t have access to the MySQL that is hosting my Ghost blog. If someone could confirm that is how Ghost would encode it? Or maybe it’s a Wordpress version of the above that the migration would take into account, as it’s downloading the images as well.
I am going to go ahead and try the above. But wanted to see if someone could save me the trouble of doing all that work, if they already know the answer.
Thank you.