Using custom page templates with plugin
-
Hello,
I’m developing a plugin. This plugin creating a new post type and displaying these posts in a custom template.
For example it’s a event calendar plugin. This plugin creating a new post type ‘event ‘. Users adding new events from wp – admin, like normal blog posts. And users creating a new page with ‘Event Calendar ‘ page template.
But for enabling Event Calendar page template, users have to copy eventcalendar.php from plugin’s dir to their template’s dir.
Last step (copying file) is really hard for some users. Is it possible to call custom page template from plugin dir?
- The topic ‘Using custom page templates with plugin’ is closed to new replies.