Recent Posts – Title Length
-
I use a three column layout for my WordPress and I display the 10 more recent post titles in the far right column. When the post title is too long, it wraps down to the next line; I don’t like this. Is there a way to truncate it at the end of the last word that fits, i.e. if there are six words and it line breaks after the fourth word naturally, to only display four words followed by an ellipse?
So
Cody Wagonner Wins Goldendale Rockcrawl Event
becomes
Cody Wagonner Wins Goldendale…
I know i can dig in and do this with strlen() stuff in php but is there an easier way?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Recent Posts – Title Length’ is closed to new replies.