Support

Account

Home Forums Front-end Issues Beginners question "Excerpt in Search results list" Reply To: Beginners question "Excerpt in Search results list"

  • In your search results page

    
    $excerpt = get_the_excerpt();
    if (!$excerpt) {
      $excerpt = get_field('your-excerpt-field');
    }
    

    of add a “get_the_excerpt” filter in functions.php that does something similar https://codex.wordpress.org/Plugin_API/Filter_Reference/get_the_excerpt