How to shorten the_content() in WordPress Themes

- by

If you’ve ever created a WordPress Theme and you’re not happy with the way it outputs text to your theme, you might be interested in a handy plugin called the_excerpt_reloaded(). You can

  • shorten the number of words being printed to screen
  • you can add a handy “Read More” or whatever link
  • allow or disallow certain HTML tags (nice!)
  • and quite a bit more.

Have a look at

the_excerpt_reloaded can replace any of the traditional WordPress Functions and do a lot more.

  • the_content()
  • the_excerpt()
  • the_content_rss() (depreciated and unreliable in WP version 2.7)
  • the_excerpt_rss()

Happy Theming!



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

Leave a Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.