Instantly share code, notes, and snippets.
Newer versions of wordpress autofill the alt text using the image's file name, any way to change this code to get around that problem?
Using get_the_title() to populate image alt tags is a bad idea. If you have multiple images they will all have alt tags that say "6579540 Ways To Be A Rock Star" even if the image is a toilet plunger stuck to someone's head. It's just not good.