blog! “Find WordPress featured images with no alt text”
WordPress allows you to set a featured image - called a "thumbnail" in the API. This gives a single image which can be used on a listing page, or shown when a post is shared on social media. The WordPress Media Library lets you set the alt text of an image. But, crucially, this alt […
Read more: https://shkspr.mobi/blog/2023/10/find-wordpress-featured-images-with-no-alt-text/
⸻
#accessibility #AltText #HowTo #php #WordPress
@Edent this is pretty cool. I have nearly 7000 posts on WordPress going back 20 years. I think it’s too late to fix my laziness. I wish I could set the alt text using the title attribute from the EXIF.
@khurtwilliams
You could do. PHP can read EXIF.
@Edent I know PHP but don’t know enough about Wordpress development. Ideally when I add an image to the editor it would populate the ALT tag with the information from the title. Any hints on where to start?
@khurtwilliams
Firstly, you need to be really sure that your title makes a good alt text.
See https://shkspr.mobi/blog/2023/07/should-you-embed-alt-text-inside-image-metadata/
Secondly, get familiar with https://developer.wordpress.org/plugins/plugin-basics/
If you already know PHP then you should have a head start.
@Edent I have a workflow for exporting images directly from Adobe Lightroom to WordPress. The title field is set in Adobe Lightroom and appears in WordPress as well.
https://islandinthenet.com/export-optimized-images-adobe-lightroom-wordpress/