WordPress.org

Ready to get started?Download WordPress

Forums

Crop sidebar contents to one line? (1 post)

  1. aar0on
    Member
    Posted 6 years ago #

    My latest posts are shown in my sidebar, but I'd like them to end after one line to keep things tidier. In other words, "A really long title that stretches forever" would be cropped down to "A really long title..."

    My code below shows I have a limit of 8 posts in my list, but what can I add to it to shorten the post titles?

    <?php wp_get_archives('type=postbypost&limit=8'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic