Home Tips & Tricks How to fix the missing captions from the gallery without re-selecting each image

How to fix the missing captions from the gallery without re-selecting each image

Have you noticed that after the most recent WordPress upgrades you might have lost the captions on the images rendered in the galleries? See below the PHP snippet that fixes this programmatically, in just a few lines of code.

How to fix the missing captions from gallery without re-selecting each image
Iulia Cazan
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.