• Hello!

    WordPress by default doesn’t add the title tag from media library, however, it does the alt tag.

    I now have over 1000 images which don’t have a title tag and is there an easy and quick way to automatically add the title tag from the media library, or just copy the alt tag?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you referring to the fields you see in the Media Library, or what is output in the content of a post with an image?

    Thread Starter ecroow

    (@ecroow)

    Hello Joy!

    I’m referring to the content of a post with an image. I can’t see a title in source code.

    WordPress does output the title attribute and the alt attribute, if there is something entered in the Media Library. You might have a plugin or theme that is interfering with that getting into the content.

    Or you might be asking what to do about images that are already in the content and didn’t have the title field when they were put into the content.
    You could have a PHP filter for the_content that adds the title attribute as the page is being generated.
    You could have a Javascript function that adds the title attribute once the page is loaded into the browser.
    You could run some sort of plugin that manipulates your content in the database to add the title attribute in your posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding title tag automatically’ is closed to new replies.