I'm making a plugin which includes a custom post type with custom taxonomies.
I have a custom template - taxonomy-coupon-category.php - but these template files are specific to a single theme.
What is the best practice to make my plugin include a custom taxonomy/archive template which works for ALL themes?
My custom code only needs to alter the loop and the internals of the loop. The problem is really that the template includes other theme specific html e.g. sidebar location, other stuff.
<?php get_header(); ?>
<!-- my unique content -->
<?php get_footer(); ?>
It'd be great if this code above would work on all themes but it doesn't (e.g. sidebar might be missing, or with roots theme header/footer appears twice) - how do other plugins manage to create custom archives and custom taxonomy templates which work on all themes?
I just need my taxonomy-coupon-category.php file to replace the loop generated content and leave the theme to handle the surrounding html.