[Resolved] Post format and Summary

Home Forums Support [Resolved] Post format and Summary

Home Forums Support Post format and Summary

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1544082
    Enrico

    Hi there, first of all I apologize for my English, I know it’s not the best
    I found this problem: when I write an article and I will set “Video” as post format, in the archive (blog) page all the text is shown, and not only the summary as I would like to do.
    If I set “Standard” post format, the summary is shown and all works well.
    Is it there a way to fix it?
    Thank you

    #1544432
    David
    Staff
    Customer Support

    Hi there,

    by default WP only parses the Standard format for the excerpt.
    You can add this PHP Snippet to your site so excerpts are on all Post Formats:

    add_filter( 'generate_show_excerpt', function( $show ) {
        if ( 'standard' !== get_post_format() && ! $show ) {
            return true;
        }
        return $show;
    } );

    More info here:

    https://docs.generatepress.com/article/excerpt-issues/#full-post-content-displaying-while-using-excerpt

    #1544464
    Enrico

    Thank you very much, it works perfectly.
    I’m sorry I didn’t find this topic in the forum, but with my poor English it’s hard to find the right query…
    Thank you.

    #1544740
    David
    Staff
    Customer Support

    No problem 🙂
    Glad to be of help

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