Site logo

Archived topic

Excerpt not showing on all blog posts

20 replies · Started by Ole on February 10, 2019

Viewing posts 16–21 of 21

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".

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;
} );

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.

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.

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

Thanks!

You're welcome - and thanks for reporting back and testing :)

This archived topic is closed to new replies.