FSE : Issue applying Gutenberg Template for Custom Post Type in a Plugin #61224
FredericGalline
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have developed a WordPress plugin that includes a custom post type (CPT). To customize the display of the "single" page for this CPT, I created a Gutenberg template file named single-my_plugin.html located in /my_plugin/templates/.
Despite my attempts, I am unable to get this template to be automatically applied to the single page of my custom post type. Could you guide me on the correct way to link this template file to my custom post type so that it is used whenever a single post of this type is displayed?
Thank you in advance for your assistance, and I am available for any additional information you might need.
Best regards,
Fred
Beta Was this translation helpful? Give feedback.
All reactions