Support » Plugins » CHARACTER LIMIT on next post, previous post — link next_post_link previous_pos

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CHARACTER LIMIT on next post, previous post — link next_post_link previous_pos’ is closed to new replies.