photog.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A place for your photos and banter. Photog first is our motto Please refer to the site rules before posting.

Administered by:

Server stats:

259
active users

🆕 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: shkspr.mobi/blog/2023/10/find-

#accessibility #AltText #HowTo #php #WordPress

Terence Eden’s Blog · Find WordPress featured images with no alt textWordPress 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 [...]
Khürt Williams

@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.

@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?