Custom Post Single Template with Block Themes
-
Hello WordPress folks. I’m working on a plugin for managing staff. I’ve made a custom post type and am able to display everything from the custom post, and my singe-templates work well with non-block themes.
I’m struggling with getting my template to work with the twenty-twenty-three block theme. get_header(); and get_footer(); are defaulting to theme-compat templates. I’ve tried get_template_part( ‘header’, ‘twentytwentythree’ ); and get_template_part( ‘footer’, ‘twentytwentythree’ ); as well as get_template();.
I’m looking for my plugin to work out of the box, at least with the default WordPress block themes as well as non-block themes and I can’t find any documentation for guidance. The idea is that a user should just be able to activate the plugin and start creating staff. Site visitors will see dedicated staff pages that inherit the same wrapper structure (header, footer, etc.) as the rest of the site. I would very much appreciate any help.
- The topic ‘Custom Post Single Template with Block Themes’ is closed to new replies.