I use the plug-in Reusable Text Blocks https://ru.wordpress.org/plugins/reusable-text-blocks/
I output the contents of the blocks via <?php if(function_exists('show_text_block')) { echo show_text_block('slug'); } ?> <?php if(function_exists('show_text_block')) { echo show_text_block('slug'); } ?>
And how to display a block thumbnail in the code?

    1 answer 1

    A block is a custom text-blocks post. Therefore, a thumbnail can be obtained with this code:

     $page = get_page_by_path( 'slug', null, 'text-blocks' ); $id = apply_filters( 'wpml_object_id', $page->ID, 'text-blocks' ); echo get_the_post_thumbnail( $id );