• i would like to save some data to a new post without creating it in the admin page, but dinamicly from a variable let’s say $post_array(‘post_title’=>$ptitle, ‘post_content’=>$pcontent, etc…)
    How can i do this with the wp_insert_post() function or do i need to use a hook.
    Any suggestion, maybe some code?
    thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter da_silva

    (@da_silva)

    noone?
    i would basically take some data from the visitor and fill a post with them but i don’t know how to do the filling of the post with the data and thought some of you can have the answer.10x.

Viewing 1 replies (of 1 total)

The topic ‘how could i create a post from some info ?’ is closed to new replies.