Posted in PHP

Create and display an excerpt from an ACF field

On a current project I’m creating a page of post listings but the clients blog posts do not use the standard content editor, instead an ACF field was used for blog post content.
When displaying this content we can pull the whole field, or none.. but no excerpt option is available!

Below is a method of pulling the content and using built in WordPress functionality to trim and present the newly trimmed excerpt:

Leave a Reply

Your email address will not be published. Required fields are marked *