これ、ちょっとめんどうですが、
以下の方法でよろしければできます。
まず、例えば、wordpressというディレクトリに、通常通りにWordPressをインストールします。
サイトのURLも、管理画面上では、すべて、http://sample.com/wordpress/にします。
そのうえで、ルートのindex.php(/www/index.php)に、
下記の記述をします。
php
1<?php
23 * Bootstrap file for setting the ABSPATH constant
4 * and loading the wp-config.php file. The wp-config.php
5 * file will then load the wp-settings.php file, which
6 * will then set up the WordPress environment.
7 *
8 * If the wp-config.php file is not found then an error
9 * will be displayed asking the visitor to set up the
10 * wp-config.php file.
11 *
12 * Will also search for wp-config.php in WordPress' parent
13 * directory to allow the WordPress directory to remain
14 * untouched.
15 *
1617 *
1819
20
21
22 require_once('./wordpress/wp-load.php'); ?><!DOCTYPE html>
23 <html lang="ja" xmlns="http://www.w3.org/1999/xhtml">
24 <head>
25<!-- HTMLの内容が続く -->
もしかしたら、phpのコメントアウトの部分はいらないかも。
こうすることによって、
WordPress上でない自作phpで、WordPressの関数などを使えるようになります。
質問者さんの意図とは違ったり、あまり推奨されない方法だったらすみません。
(間違っていたらご指摘いただければと思います)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/06/14 06:34
2018/06/14 06:58 編集
2018/06/18 04:31