图像不会通过wordpress中的html代码显示 [英] images are not shown through html code in wordpress

查看:101
本文介绍了图像不会通过wordpress中的html代码显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...







我在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆