Get Excerpt from an Advanced Custom Field ACF

Place in your functions file:

Make sure to change “your_field_name”.

Use in your template:

 

3 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!!
    Carlos.-

    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:

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

Leave a Reply

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

38 − 32 =