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?
- The topic ‘Limit wp_get_archives to show certain number of words per line’ is closed to new replies.