Skip to main content
6 events
when toggle format what by license comment
Apr 23, 2013 at 13:14 review Suggested edits
Apr 23, 2013 at 13:18
Apr 23, 2013 at 13:12 vote accept ptriek
Apr 23, 2013 at 13:12 comment added ptriek Already found the fix: just had to add exit() after the include, this prevents the original template from being loaded.
Apr 23, 2013 at 13:07 comment added ptriek Also - just for future reference - I had to change $wp_query->post_type to get_post_type() to make it work...
Apr 23, 2013 at 13:06 comment added ptriek that seems like a perfect solution, thanks for pointing me to 'template_redirect', never heard of it. just one issue: for some reason, the original course template file (single-course.php) is appended after the closing body tag - I suppose I also have to 'exclude' this template file in some way - any idea how to to this?
Apr 23, 2013 at 11:50 history answered Rajeev Vyas CC BY-SA 3.0