Add Missing Link Titles

By Jose Mortellaro

★ 5.0/5 (1 ratings)60+ active installationsVersion 1.0.0

Automatically adds a title attribute to links within your post content that don't already have one, making links more descriptive and accessible.

Description

Add Post Title to Links is a extremely lightweight plugin for WordPress that improves link accessibility and SEO by adding a title attribute to links (<a> tags) within your post content.

If a link doesn’t already have a title, the plugin will try to:

  • Use the current post’s title if the link is within the main post loop
  • Find the post associated with the link and use its title

This plugin is ideal for site owners who want a quick and automatic way to make links more accessible and descriptive.

Features

  • Automatically adds a title attribute to links that lack one
  • Works in the main post loop
  • Works with links to internal posts
  • Simple and performant — no settings required
  • This current version doesn’t work with the main navigation or any other elements that aren’t part of the post content.
  • Improves accessibility and SEO

Installation

  1. Upload the plugin files to the /wp-content/plugins/add-post-title-to-links directory, or install via the WordPress plugin installer.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Done! Links within your post content will now have titles added automatically.

FAQ

Will this plugin slow down my site?

No. It’s a lightweight plugin that only processes links within post content.

Will it add titles to external links?

Titles will only be added for links that point to internal WordPress posts.

Will it overwrite existing titles?

No. The plugin only adds titles to links that do not already have one.

Changelog

1.0.0

  • Initial release.