Created
February 10, 2014 22:25
-
-
Save xymox12/8925508 to your computer and use it in GitHub Desktop.
notes to self on template inside wordpress plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------ | |
public $pluginPath; | |
public function include_template_files($template) { | |
//global $wp; | |
if (is_tax( 'cp_keywords' )) { | |
$templatefilename = 'taxonomy-cp_keywords.php'; | |
$template = $this->pluginPath . '/templates/' . $templatefilename; | |
echo $template; | |
return $template; | |
} | |
return $template; | |
} | |
---------------------------------------------------- | |
$CPPublicationCPT->pluginPath = $this->pluginPath; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment