Limiting the amount of text generated by '%link'…
-
Right now I’m using a modified child version of the Twenty Ten theme, and in the loop-single-post.php there’s a bit of code that allows you to navigate from this post’s page to the next or previous post.
I really like this function, but if the title for either the next or previous post is too long, it looks awful and adds space to the top of the page. Is there any way to limit the amount of characters that is shown from the string ‘%link’?
e.g. if the actual string for %link is “Man, isn’t summer just the greatest time ever?”, and I want to shorten it such that it looks like “Man, isn’t summer just…”, how do I do that?
I imagine I change the string to at least ‘%link…’, but how do I get the php to recognize not to print more than x amount of characters of %link?
Any help would be greatly appreciated!
- The topic ‘Limiting the amount of text generated by '%link'…’ is closed to new replies.