• Resolved ledilson

    (@ledilson)


    I’m trying to display the gutenberg blocks from a specific post ID inside another one.

    The question is, does exist a function that I can get all blocks from one post and display it anywhere in the site? Just like get_the_content do?

Viewing 1 replies (of 1 total)
  • Plugin Author Jorge Costa

    (@jorgefilipecosta)

    Hi @ledilson,

    Gutenberg blocks are saved as normal HTML content like other posts so if we use something `echo apply_filters( ‘the_content’, get_the_content(….) );, you should be able to output the contents of a post including its blocks.

    I hope you find my answer useful, feel free to comment if you need additional clarification.

Viewing 1 replies (of 1 total)
  • The topic ‘Get Gutenberg Blocks without the_content()’ is closed to new replies.