Viewing 1 replies (of 1 total)
  • Plugin Author livemesh

    (@livemesh)

    You can try the official way to limit excerpt in words and see if that works –

    function custom_excerpt_length( $length ) {
    return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    else you need to use another official function wp_trim_words() at line 1220 in wp-content/plugins/addons-for-elementor/includes/widgets/posts-carousel.php –

    $trimmed_content = wp_trim_words( $excerpt, $num_words = 55, $more = null );

    I have added this to my todo list and will have an option in the posts carousel to limit the excerpt in the next update. Until then you can try the above options.

Viewing 1 replies (of 1 total)

The topic ‘Post carousel plugin – Controlling post title length’ is closed to new replies.