[wp-hackers] Use a special Single.php type page for CPT from plugin...

Ryan Frankel ryan.frankel at gmail.com
Mon Dec 5 18:37:58 UTC 2011

  If I create a custom post type in a plugin and want to have the single.php type page be defined by the plugin how do I do that?

  Context:  One of the things I find annoying is keeping up with the support of my plugins.  I always find myself asking the same questions to users over and over and also have a hard time keeping track of things.  I know there are lots (and lots) of bug tracking systems but ideally I wouldn't want to send my users to yet another site to get support and would like to do it directly from my site.  
So….I am creating a plugin that is a bug tracker specifically designed for plugin authors.  It will include taxonomies that help ask all of the normal questions that I usually have to ask for plugin support.  Anyways, I have a CPT for this and would like when a user clicks on a link I need to display custom information on the single post page.  My question is how I do this from a plugin.  It is simple for a theme but for a plugin it is different.  Is the bet way to go about it just to use a content filter?  

Here is a link just for a little visual of what I am talking about: http://dl.dropbox.com/u/31511249/cpt-table.png
The plugin allows the user to choose the taxonomies that are shown on the front-end so that isn't all of them. 


If you have made it this far maybe I could also get some feedback on the taxonomies I am using.  Here is a list of the common ones that I think will be useful but if anyone has any ideas on others or thinks the ones I have chosen are stupid please let me know.

Taxonomies about the bug
Plugin Name
Plugin Version
New Install or Upgrade
WordPress Version
A link to the site running the plugin and showing the bug
Operating System

Taxonomies about the fix
Assigned To


If you think this is a terrible idea or someone has a better idea of how to handle this I'm open to suggestions. 


More information about the wp-hackers mailing list