我已在配置中定义:
define( \'WP_CONTENT_DIR\', dirname(__FILE__) . \'/somedirectory\' );
之后Codex: Editing WP Config但是<?php echo get_template_directory_uri(); ?>
打印输出:
http://dev.domain.com/wp-content/themes/mytheme
即使它应该打印出来http://dev.domain.com/somedirectory/themes/mytheme
是否有其他人经历过这种情况或知道修复方法?