Hi
I'm writing a little piece of code to create a number of pages under a blog. I'm using wp_insert_page which I call with these arguments:
$input = array(
'post_title' => "test",
'post_content' => "Yes Ive got it",
'post_status' => "published",
'post_category' => 1 ,
'post_type' => 'page'
);
the problem i have tha it returns a wrong permalink like this:
http://myhost/myblog/1969/10/11/
I dont know where it get this year, anyway this link doens work. The link that works has this structure http://myhost/myblog/?page_id=2
A strange thing is that if i create a page using the admin consolle the permalink is http://myhost/myblog/page/2/
It is nicer but I would like to control the generated permalink in oder to have a permalink structure like this
http://myhost/myblog/name/surname/ of page creator.
How can i get this result?
thanks
Paolo