İşlem başarılıysa
header ile tekrar o sayfaya yönlendir.
Yenilemek istese çıkmaz uyarı
header ile tekrar o sayfaya yönlendir.
Yenilemek istese çıkmaz uyarı
Denedim de kodlar bozuluyor yanlış yere mi koyuyorum anlamadım.
Sayfanın kodu şu şekilde.
$my_post = array(
'post_title' => htmlspecialchars($_POST['post_title']),
'post_content' => htmlspecialchars($_POST['post_content']),
'post_status' => 'publish',
'post_author' => $current_user->ID,
'tags_input' => htmlspecialchars($_POST['tags']),
'post_category' => array(1)
);
// Insert the post into the database
$id = wp_insert_post( $my_post );
if($id) { ?>
girdiniz gönderilmiştir, burada görebilirsin. hayırlı olsun.
}
?>