• On my weblog https://www.sevenstripes.com/blog on my sidebar I have:

    ‘<?php get_archives(‘postbypost’, ’10’); ?>’

    ..used to show 10 most recent posts.

    But when the post title is long, the link runs over into a second line in the Most Recent Post section in my sidebar which makes it look kinda gross and unorganized.

    Is there a way to set a max number characters the get_archives can grab from the title of the post to prevent this?

    IE…

    Instead of the Most Recent Post showing the full title of:

    “-Tour de France Winner Floyd Landis Is Busted for Testosterone”

    Limit it to show:

    “-Tour de France Winner Flo…”

    Any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Is there a way to limit # of characters displayed with get_archives?’ is closed to new replies.