I have created a plugin that registers a custom post type. I would like to load a custom header and footer for the custom post type from the plugin.
After some google research I can see that it's not possible to use get_header() to load and so I have tried using:
<?php get_template_part('header', 'trademanager'); ?>
Which I can now see is exactly the same as using get_header() and so it obviously fails. The codex has pointed me towards load_template() https://codex.wordpress.org/Function_Reference/load_template
I don't really understand how to use it, can someone help me figure this out please?
My custom theme file is header-trademanager.php and is located in plugin/templates