CHARACTER LIMIT on next post, previous post -- link next_post_link previous_pos (3 posts)

  1. gmisen
    Posted 6 years ago #

    Can't find anything addressing this specifically

    If you're viewing a single post and the Next Post and Previous Post titles are really long?

    The next_post_link and previous_post_link, if floated left and right on the same line are going to start fighting for space in the middle.

    I assume someone's figured out a way to set a character limit on this function? The closest I think I've gotten was putting this in the functions.php, but it still doesn't work:

    <?php add_filter('next_post_link', create_function('$shortnext','return substr($shortnext,0,25);'))>

    Any thoughts?

  2. kristanlh
    Posted 5 years ago #

    I'm curious about this myself...

  3. tsoslow
    Posted 5 years ago #

    Try using "Better Adjacent Post Links" plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic