图像不会通过wordpress中的html代码显示 [英] images are not shown through html code in wordpress
问题描述
嗨...
我在wordpress中创建了自己的主题,我有在其中添加了下面提到的页面。
header.php,footer.php,functions.php,index.php,sidebar.php,side-menu.php,page.php。
我从仪表板创建了几个页面,并使用img标签从那里我想添加图像但是图像不显示只有代码显示在这样的网页上
< img src =http://localhost/wp_hospital_management/wp-content/uploads/2014/05/Lighthouse.jpg>
该怎么办?
我在这里写了源代码并且图像显示但是在我的主题中它不起作用。
Thanx提前
Hi...
I have created my own theme in wordpress and i have added below mentioned pages in it.
header.php,footer.php,functions.php,index.php,sidebar.php,side-menu.php,page.php.
I have created few pages from dashboard and from there using img tag i want to add image but image is not displayed only code is shown on website page like this
<img src="http://localhost/wp_hospital_management/wp-content/uploads/2014/05/Lighthouse.jpg">
what to do??
I have written the source here and image is displaying but in my theme it is not working.
Thanx in advance
推荐答案
这是因为你是usong localhost链接发送,insted使用相同的实时链接..
ex Instef使用这样的
this is because you are usong localhost link to send, insted use live link for the same..
ex Instef of using like this
"http://localhost/wp_hospital_management/wp-content/uploads/2014/05/Lighthouse.jpg"
使用此
use this
"http://your website link/wp_hospital_management/wp-content/uploads/2014/05/Lighthouse.jpg"
这篇关于图像不会通过wordpress中的html代码显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!