I'm trying to add custom template for FSE (Full Site Editing) from a plugin, but I have no idea how to do it.

I want to make a template for custom post type. that can be edit it from Site Editor. enter image description here

I know how to add custom template from theme.json. But how can I achieve that from a plugin?

  • 1
    Please edit your question to tell us what you've tried and what specific problem you're having.
    – Pat J
    Commented Nov 10, 2021 at 1:57
  • I don't think, there is a need for any details. The question is clear. I have no idea how to do it. So I did not try anything. the problem is clear. how to do something...
    – shadi
    Commented Nov 10, 2021 at 2:21
  • 2
    This isn’t off topic. They’re asking about the full site editing features in WordPress 5.8. Commented Nov 10, 2021 at 2:56
  • Ah, OK. (Clarifying what FSE stands for might be a good edit for the question.)
    – Pat J
    Commented Nov 10, 2021 at 3:00
  • 1
    Agreed that it is not off-topic but the OP should explain what their research has uncovered and where they are stuck, asking a specific and answerable question. wordpress.stackexchange.com/help/how-to-ask
    – jdm2112
    Commented Nov 10, 2021 at 14:17


Your Answer

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

Browse other questions tagged or ask your own question.