Click here to Skip to main content
14,242,862 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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"
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100