• Resolved eadiooh

    (@eadiooh)


    Hello,
    I’m trying to load a block created in lazybloc directly in the template in my theme.

    Actually I’ve put this in the php

    $reuse_block = get_post( 84 );
    $context['block'] =apply_filters( 'the_content', $reuse_block->post_content);

    And in the twig template
    {{ block}}

    But the block don’t appear. Am I missing something? Is it even possible to do that?

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load block in template’ is closed to new replies.