I've been building out a website within a WordPress 'wrapper', and it's been going reasonably well. I've got a Plugin that holds some of my code, and I've got a Theme that holds other bits of my code, and overall things seem to be working the way I'd like for them to.
My site is not a blog and will never contain blog-style content, has very few of the kinds of 'Page' elements that typify WordPress installations, and overall doesn't use most of the rest of what people think of when they think 'WordPress'. I'm mainly using WordPress because I'd like for user account management and monetization to be handled by WordPress and 3rd-party plugins that I can use with WordPress.
So in order to build my site within WordPress, I had to create a bunch of page Templates, and then use the WordPress Admin's Create Page function to create a (blank) page with a particular slug (or at least a unique slug) for each of my Templates. This all works.
However, it's not very portable.
What I mean by that is that I've developed all of these 'Templates' (which are really fully-functional pages) and they exist in my Theme, but then when I want to move my code from my dev box to the test environment, I've got to go into WP's admin interface and laboriously create all of those Pages again. And pray that I don't screw anything up with all that mind-numbing manual effort.
And then, when it's time to promote to Production, I've got to do all that again. This, needless to say, is undesirable.
My question, then, is 'how can I use my custom-coded PHP pages in WordPress in a way that makes them easily portable between environments?' From the formulation of the Title of this post, you can see that I assume that this would entail not using Templates, but I don't know what I don't know, so I'd appreciate guidance from those of you with more WordPress experience than I have.