Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Leslie Hui
3,330 PointsTrimming the no of characters for the description in Wordpress
Hi,
I'm learning "How to Build a WordPress Theme' now and would like to know how i can limit the no. of characters to display for the description in the Work page.
For this line of code <?php the_field('description'); ?>
Any advise please, Zac Gordon?
1 Answer

Gautam Thapar
5,265 PointsThis snippet might be helpful - Trim Words in WordPress
Leslie Hui
3,330 PointsLeslie Hui
3,330 PointsThanks Gautam Thapar! I actually solved it before you replied. :)