如何生成一个wordpress的运行环境
首先给出答案,在wordpress的根目录中,创建一个php文件,加载一下文件 wp-blog-header.php 即可。

可以看到注释 加载一个wordpress的执行环境和模板。
比如创建一个文件 wpenvtest.php
<?php
include "./wp-blog-header.php";
加载个文件,模板是不会输出的。
一个交流学习wordpress的网站
首先给出答案,在wordpress的根目录中,创建一个php文件,加载一下文件 wp-blog-header.php 即可。
可以看到注释 加载一个wordpress的执行环境和模板。
比如创建一个文件 wpenvtest.php
<?php
include "./wp-blog-header.php";
加载个文件,模板是不会输出的。