Support » Fixing WordPress » Limit wp_get_archives to show certain number of words per line

  • Hi, I’m trying to use wp_get_archives to display a list of recent posts. I understand there is a “limit” parameter that you can use to set the maximum number of posts that it displays. However, is there a way to specify the number of words per post title? Basically I would like the list of recent post to be one line each. If the title of a recent posts is longer than, say, 6 words, then I would like for it to only show “…” in place of the remaining words in the title.

    How can this be done?

    Much thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Limit wp_get_archives to show certain number of words per line’ is closed to new replies.