I need some help, im trying to do a wp_insert_post with a htmlform (php and wordpress). I keep getting a 500 server error and i dont understand why, can you please help me? (the prints and echoes is for testing some stuff).
Ide
Hantverk
Budskap
$title, 'post_content' => $message, 'post_name' => $description, 'post_status' => 'publish', 'post_type' => 'omdmen' ); print_r($new_post); $new_post = wp_insert_post($new_post); } echo('finished'); ?>
Aucun commentaire:
Enregistrer un commentaire