What I want to do is install a template, and that template automaticly create a page, like the abotu me page is created when you first install wordpress. how can I do this? How do you run an SQL statment when you install a new theme? since pages are stored in the database I could just upload teh page this way when installing the theme but I have no ideia how.
Best Regards
JCHASE, I agree with wp_insert_post part, the only thing that I would suggest is using an action hook instead of $_GET. Using add_action( ‘after_setup_theme’, ‘my_initiation_function’) would be a better option
My above answer is for adding posts. The below answer is to add a page (it adds the page on theme activation):
This is how to do it for posts:
See below for pages. See this page for the reference.