如何在本地WP安装上使用实时图像?我想在下面的wp-config.php
. 问题是siteurl
必须是相对路径,不能是url。我想建立一个本地环境来离线测试某些部件,并需要显示图像。
if ($_SERVER[\'SERVER_ADMIN\'] == \'dev\') {
define(\'WP_HOME\',\'http://localhost/siteurl.com/public_html/\');
define(\'WP_SITEURL\',\'http://localhost/siteurl.com/public_html/\');
// use live images
define( \'UPLOADS\', \'http://siteurl.com/wp-content/uploads/\' );
}