What I need to know is the best approach to do this in the WP realm. So far I’ve thought of….
Adding the static pages to the theme directory and perhaps linking to them. I actually tried this, but it appears I need to jump through “include” hoops. I’m not 100% certain how to do that. My first attempt resulted in a 404 page, and after that I just got PHP function not found errors.
I suppose I could automatically create WordPress pages when the theme is activated using the functions.php file. That seems a bit dicey to me – too many ways for that to end badly. Or, I could just have the functions.php file load a purely static page from somewhere.
I could “game” the 404 page. In other words, in the 404 script I could check to see if the slug matches one of my static pages and load the static page up in the content area.
I’m leaning a bit toward the last option since it’s something I know I can code. But, if someone has a better/cleaner solution, I’d like to hear about it.
- The topic ‘True static pages?’ is closed to new replies.