• Hey all,

    Just stuck with this issue here.

    I am designing a plugin that adds a new page to the blog automatically.

    The issue is that I want to use a custom template (which will be part of the plugin package). Let’s call that customtemplate.php

    Now, I need to make sure that the new page created uses this template.

    So far, I’ve tried using absolute and relative paths for the _wp_page_template meta data to refer to this file in the plugin’s own folder.

    But that doesn’t work.

    Then, I tried copying over the file to the current theme’s folder. Again, no luck, since folder permissions come in between.

    So, is there a workaround to create a new template using a plugin?

    Been looking for this forever! ??

    Sagar

  • The topic ‘Create NEW Template Using Plugin’ is closed to new replies.