I am in the process of creating a wordpress mobile theme for one of my wpmu networks. I have created 2 + pages that show our other sites and a custom login form. Right now i have labeled them page-other-sites.php and page-login.php and created 2 pages in the backend. When you click on the link it loads the page-(slugs).php
Now instead of having to create a page every time is there a way to have my themes function.php file create a set of default pages.?
other sites
and the other showslogin
they are named so that when i create a page in wordpress with the write slug they load the page. This page does not have any wordpress features just some php coding. What i was wondering is there a way for me to put some code into the functions.php files that will tell wordpress there are some external pages. These pages should load domain.com/login domain.com/other-sites not a full path to wordpress theme directory. Also it will not be a active theme but a theme that gets activated when a mobile devices enterspage-other-sites.php
? In this case, take a look atwp_insert_post()