WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Using custom page templates with plugin (1 post)

  1. erayalakese
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic