Site logo

[Resolved] Excerpt not showing on all blog posts

Home Forums Support [Resolved] Excerpt not showing on all blog posts

Home Forums Support Excerpt not showing on all blog posts

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #2444810
    Markus

    Hi David,

    You can see the issue here: https://www.liedjesfabriek.nl/blog/ I’ve deactivated the code now.
    GP 3.2.4 + GP Prem. 2.2.1 + GB 1.6.0 + GB Pro 1.4.0 are used.

    The issue occurs (for example) when there is an image in the left column and text in the right column.
    So ‘cards’ that are linked to single posts in which the text is not the first element in the first container (of a grid), don’t show an excerpt.
    If I activate the code again, than the excerpts are shown.

    In the block editor (backend) it says “Geen berichtsamenvatting”, which is Dutch for “No post excerpt”.

    #2446333
    David
    Staff
    Customer Support

    Ah ok, i think that is the nested grid containers – is it this code you’re using:

    add_filter( 'excerpt_allowed_wrapper_blocks', function( $allowed ) {
        $allowed[] = 'generateblocks/container';
        $allowed[] = 'generateblocks/grid';
    
        return $allowed;
    } );
    #2446359
    Markus

    Yes that’s the code.
    The issue doesn’t resolve without this rule: $allowed[] = ‘generateblocks/grid’;
    but it does resolve without this rule: $allowed[] = ‘generateblocks/container’;

    In this post: https://www.liedjesfabriek.nl/blogs/de-pardoesjes/ the text is in the first (two) columns, but the excerpt is still not shown.

    #2446445
    David
    Staff
    Customer Support

    Yes, its the Grid Blocks it doesn’t like.
    We’ll get that fixed, if we can do it without breaking other stuff 🙂 For now you do need to keep the code.

    #2446455
    Markus

    Alright, I’ll keep using the code for now. At least now I know the cause.

    Thanks!

    #2446521
    David
    Staff
    Customer Support

    You’re welcome – and thanks for reporting back and testing 🙂

Viewing 6 posts - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.