Site logo

[Resolved] Add either 3 dots or finish sentences in archive excerpts

Home Forums Support [Resolved] Add either 3 dots or finish sentences in archive excerpts

Home Forums Support Add either 3 dots or finish sentences in archive excerpts

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2492333
    Mark

    Hi,

    I am trying to add excerpt text under image thumbnails in the archive pages. I want around 20-30 words, but no matter how many I add, the sentences cut off at how many words I add.

    I’d like to either add 3 periods mid0sentence “…” or have the text finish at the end of a sentence close to say, 25 words.

    I can add 3 periods if I put them in the “Read more label” section of “Customize”, but it also duplicates a link to the post.

    I added an example in the private area below. You’d just need to scroll down that page to see what I mean.

    Thanks 🙂

    #2492338
    Mark

    Sorry, I got the fix on another of my sites! I just remembered

    add_filter( ‘wp_trim_excerpt’, ‘tu_excerpt_metabox_more’ );
    function tu_excerpt_metabox_more( $excerpt ) {
    $output = $output = $excerpt . ‘…’;
    return $output;
    }

    #2492352
    Fernando
    Customer Support

    I see. Glad you resolved it, Mark!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.