• hi,

    using the following to make a post

    $my_post = array(
        'post_title' => $post_title,
        'post_content' => $post_content,
        'post_status' => 'publish',
        'post_author' => '1',
        'post_category' => $cats
        //'post_date'     => $postdate
    );
     
    if (wp_insert_post( $my_post ))

    but always the new posts appear below the previous ones ;(

    I have to pass something else @ array ?

  • The topic ‘Post with wp_insert_post’ is closed to new replies.