Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

this is because you are usong localhost link to send, insted use live link for the same..

ex Instef of using like this

C#
"http://localhost/wp_hospital_management/wp-content/uploads/2014/05/Lighthouse.jpg"


use this

C#
"http://your website link/wp_hospital_management/wp-content/uploads/2014/05/Lighthouse.jpg"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900