Support

Account

Home Forums Backend Issues (wp-admin) Permalink ACF Field Reply To: Permalink ACF Field

  • Hi @serviceweb

    If you want to limit the amount of the excerpt, you can use the wp_trim_words() function. Maybe something like this:

    if( get_field('url_field_past') ) {
        echo wp_trim_words( get_the_excerpt(), 100);
    } else {
        echo get_the_excerpt()
    }

    I hope this helps 🙂