Forum Replies Created

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

    (@minuro)

    Sry, but I have fix it my self, hope that will help others too.
    What I modify is down.

    //create the new post
    $new_post = array(
    ‘menu_order’ => $post->menu_order,
    ‘comment_status’ => $post->comment_status,
    ‘ping_status’ => $post->ping_status,
    ‘post_author’ => $new_author->ID,
    ‘post_content’ => $post->post_content,
    ‘post_excerpt’ => $post->post_excerpt,
    ‘post_mime_type’ => $post->mime_type,
    ‘post_parent’ => $post->ID,
    ‘post_password’ => $post->post_password,
    ‘post_status’ => self::$TAO_PUBLISH_STATUS,
    ‘post_title’ => $post->post_title,
    ‘post_type’ => $post->post_type,
    ‘post_date’ => $post->post_date,
    );

    And here:
    $post->post_date = $orig->post_date; //we need this to get wp to recognize this as a newly updated post
    $post->post_date_gmt = get_gmt_from_date( $post_date );

Viewing 1 replies (of 1 total)