carpics
carpics

Reputation: 2282

Add template page from plugin - Wordpress

I want to add page template from my plugin. So when user go to add new page, in "Template" drop-down menu should appear my template page from plugin. So user will be able to choose my template from plugin for new page.

Template file should be located in my plugin directory.

Is this possible?

Upvotes: 0

Views: 56

Answers (1)

Daniel C
Daniel C

Reputation: 2155

Check out this well written article on the subject. It's not a plugin in itself, but rather shows you how to write exactly what you are looking to do inside your own plugin:

http://www.wpexplorer.com/wordpress-page-templates-plugin/

Upvotes: 1

Related Questions