Skip to content

Related Posts: limit number of characters in post titles, instead of number of words #1091

@jeherve

Description

@jeherve

We currently limit the number of words to 5 in the Related Posts' titles:
https://github.com/Automattic/jetpack/blob/master/modules/related-posts/jetpack-related-posts.php#L686

While that seems to do the trick for the standard 3 posts we display in Jetpack, if blog owners use the jetpack_relatedposts_filter_options filter to display more than 3 posts and have them displayed in a grid, it can create issues:

jetpack

Should we limit the number of characters instead, and add an ellipsis?

Reported here:

Metadata

Metadata

Assignees

Labels

EnhancementChanges to an existing feature — removing, adding, or changing parts of it[Feature] Related Posts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions