4 thoughts on “Get Excerpt from an Advanced Custom Field ACF

  1. Carlos Arellano

    Really nice code!! i got a question though, its possible insert the permalink into the […]?

    thanks again!!

    1. acrane

      Sure, you would just need to get the permalink and then wrap it in the link. Add a new line to the function:

      $permalink = get_permalink($post->ID);

      That gives you the permalink. Then change the line that starts with $excerpt_more to:

      $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');

Comments are closed.