質問編集履歴
1
追記事項
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,6 +8,44 @@
|
|
8
8
|
|
9
9
|
最初からある「/www/index.php」は、すでにコーディング済みのトップページです。(上書きすると消えてしまうのでできない)
|
10
10
|
|
11
|
+
ちなみに、このindex.php内に下記内容のテキストを張り付けてもだめでした。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
<?php
|
16
|
+
|
17
|
+
/**
|
18
|
+
|
19
|
+
* Front to the WordPress application. This file doesn't do anything, but loads
|
20
|
+
|
21
|
+
* wp-blog-header.php which does and tells WordPress to load the theme.
|
22
|
+
|
23
|
+
*
|
24
|
+
|
25
|
+
* @package WordPress
|
26
|
+
|
27
|
+
*/
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
/**
|
32
|
+
|
33
|
+
* Tells WordPress to load the WordPress theme and output it.
|
34
|
+
|
35
|
+
*
|
36
|
+
|
37
|
+
* @var bool
|
38
|
+
|
39
|
+
*/
|
40
|
+
|
41
|
+
define('WP_USE_THEMES', true);
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
/** Loads the WordPress Environment and Template */
|
46
|
+
|
47
|
+
require('./wordpress/wp-blog-header.php');
|
48
|
+
|
11
49
|
|
12
50
|
|
13
51
|
※通常のhtmlファイルにワードプレスの投稿機能だけを搭載するために、/www/index.htmlを、/www/index.phpに変更し、/www/wordpress/の中にワードプレスをインストールしています。
|