I fixed it by changing line 126:
$template_data = implode( '', file( WP_CONTENT_DIR . $template ) );
to:
$template_data = implode( '', file( $template ) );
Hope this helps!
Thanks, sam.psb. Your fix works for me.
Whew, thanks sam.psb. Your fix just saved my computer’s life. I was about to throw it against the wall.
Thanks Sam .. Much Appreciated!
Nice work, and thanks for the post!
thanks that fix works great!
No worries, glad to have helped!
Sorry, for me it does not work … ;0(
The new version of the plugin should resolve this problem. Apologies for the delay in getting it out to you.
Best regards,
Simon
Thanks Simon.
Your trunk version (1.0) works.
Unfortunately, your older version shows up in the plugin repository.
For anyone else reading, the latest, bleeding version of CPT can always be found here:
http://downloads.wordpress.org/plugin/custom-post-template.zip
OK. SO it turns out that I completely messed up releasing v1.0. You should find an upgrade to v1.1 now and that should work OK. Let me know if not.
Simon