forgive me a question that may seem stupid, but has been keeping me busy for hours: I'm trying to insert a gutenberg block into a category php template, but neither the render_block () function nor the do_blocks () function seem to give results. Can anyone help me?

  • 2
    There isn't really an API for rendering a block directly into a PHP template. You would need to add one to a post, copy the HTML, and use that in the template. Jul 21, 2022 at 10:38
  • Please provide more specific details on what you're trying to do.
    – djanym
    Jul 22, 2022 at 15:07

1 Answer 1


Solved by manually inserting HTML into the template, Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.