質問編集履歴
1
コード追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,2 +1,12 @@
|
|
1
1
|
wp-insert-postができずに、困っています。
|
2
|
-
ソースというものは、ありませんが何かファイルを読み込まないといけないのでしょうか?
|
2
|
+
ソースというものは、ありませんが何かファイルを読み込まないといけないのでしょうか?
|
3
|
+
|
4
|
+
```ここに言語を入力
|
5
|
+
<?php
|
6
|
+
$postarr = Array(
|
7
|
+
'post_status' => 'publish',
|
8
|
+
'post_category' => '1',
|
9
|
+
'post_title' => '記事タイトル',
|
10
|
+
'post_content' => '記事の内容' );
|
11
|
+
wp_insert_post($postarr); ?>
|
12
|
+
```
|