Take the tour ×  I'm writing a custom post type plugin. Part of
it I'm outputting to the template via shortcodes. But other
parts need a custom post template, and I figured out how to use
the template hierarchy for CPT's. But the custom template is in
the theme, and I'm thinking the plugin should be self-contained,
at least to start with.  So what's the best practice here? How
do we include template files in a CPT plugin? Can you point me
to especially good examples of how this is done?  Thanks for
your help.  share|improve this question possible duplicate of
Custom Post Type Templates from Plugin Folder? –  Johannes Pille
Apr 21 at 15:58 Not sure it's a duplicate, but it's a subjective
question. Best practice to me would be to let the theme handle
it. Best practices to others would be to make the plugin
completely self-contained. –  chrisguitarguy Apr 21 at 16:01
@JohannesPille I did search before asking. But thanks for the
link. I'll be looking into it. –  NotoriousWebmaster Apr 21 at
16:04 @chrisguitarguy