[英]Wordpress get_bloginfo('template_directory') returns hostname instead of website url
[英]How to edit get_bloginfo('template_directory') to localhost instead of real domain?
我試圖將WordPress網站安裝到本地目錄。
get_bloginfo('template_directory')
返回http://realdomain.com
而不是localhost
。
我如何以及在哪里更改?
define('WP_HOME','http://siteurl'); define('WP_SITEURL','http://siteurl');
將這兩行放在您的wp-config.php文件中
您需要在選項表中更新home和siteurl。
您可以在“ settings > general
進行更改,但是在執行此操作時可能要格外小心。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.