Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Possible Duplicate:
Custom Taxonomy in plugin and template

I want to specify a template file for a custom post type in a plugin folder. Commonly, WP would call automatically the single-customposttypename.php from the theme directory, but I want to call /wp-content/plugins/myplugin/somefile.php

Best regards, .wired.

share|improve this question
Have a look at this question: wordpress.stackexchange.com/questions/34406/… – Johannes Pille Oct 14 '12 at 23:40
1  
Does this help: wordpress.stackexchange.com/questions/50201/… ? – Stephen Harris Oct 14 '12 at 23:53

marked as duplicate by Rarst Oct 15 '12 at 21:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Okay, I think I'm simply going to include my template file from the plugin, do the things i want and then simply exit;

share|improve this answer
1  
Take a look at the link @StephenHarris gave you. That's probably the best method. – kaiser Oct 15 '12 at 0:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.