dem-post

‘;
echo $stroka1;
echo ‘
‘;
echo $stroka2;
echo ‘
‘;
echo $stroka3;
echo ‘
‘;
echo $stroka4;
echo ‘
‘;
echo $avtor;
echo ‘
‘;
echo $zhanr;
echo ‘
‘;
/////////////// Create post object создает пост ////////////////////////////
$my_post = array(
‘post_title’ => $flname,
‘post_content’ => ‘



‘.$stroka1.’
‘.$stroka2.’
‘.$stroka3.’
‘.$stroka4.’
‘.$avtor.’
‘.$zhanr.’

[ratings]

‘,
‘post_status’ => ‘draft’,
‘post_author’ => $user_id, //’1′,
‘post_category’ => array(1)
);
// Insert the post into the database
wp_insert_post( $my_post );
//echo «страничка добавлена в пост»;
///////////////// Create post object создает пост///////////////////////////
echo ‘
‘;
echo ‘Ваша частушка будет опубликована после модерации, можете скачать картинку’;
echo ‘
‘;
echo ‘‘;
?>