1

I am developing a WordPress theme and my theme contains multiple pages. I have added the static pages as templates and I know that in order to import these templates I have to go to the admin panel and using the Pages -> Add New option I can import the template. But I don't want my client to undergo this tiresome process. Instead, I want to do some coding so that the pages are automatically created. I guess I have to add some code in functions.php.

Please advise.

1
  • Why are you using WordPress if you’re not going to use it like a CMS? Commented Nov 7, 2017 at 11:19

1 Answer 1

0

If you are creating a new theme either for sale of for a client you may want to have it create a custom page or pages when the theme is activated.

http://wpsnipp.com/index.php/functions-php/create-page-on-theme-activation/

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.