# Descriptive "Read More" Links With the Post Title

> Adds the post title as hidden text to "Read more" and "Continue reading" links, so screen reader users hear where each link goes instead of a list of identical links.

- Type: PHP
- Runs: Frontend only
- Category: [Accessibility](https://wpide.com/library/category/accessibility/)
- Tags: links, excerpts, screen-reader
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/a11y-descriptive-read-more/

## Code

```php
// Visible link text; the post title is appended as hidden text.
$wpide_more_text = 'Read more';

$wpide_more_link = function () use ( $wpide_more_text ) {
    return sprintf(
        ' <a class="more-link" href="%1$s">%2$s<span class="screen-reader-text"> about %3$s</span></a>',
        esc_url( get_permalink() ),
        esc_html( $wpide_more_text ),
        esc_html( get_the_title() )
    );
};

add_filter( 'excerpt_more', function () use ( $wpide_more_link ) {
    return '&hellip;' . $wpide_more_link();
}, 20 );

add_filter( 'the_content_more_link', function () use ( $wpide_more_link ) {
    return $wpide_more_link();
}, 20 );
```

## Notes

Change $wpide_more_text to the visible wording you want; the post title is added for screen readers only.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Descriptive "Read More" Links With the Post Title" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
