Making Image URL Relative To Custom HTML Template In WP

7 replies
I have made my own HTML template to be included in wordpress posts where I need it. It is stored in a plugin folder. (It makes a table with a linked image inside it, which I add to posts when needed).

Although the template works the only thing it won't do is display the image I have added in the code.

The image is in the same folder as the html template.

So I have in the HTML template
Code:
<a href="links"><img src="theimage.gif"></a>
I presumed that having it in the same folder as the HTML template that it would pick up the image and display it. But it doesn't display the image only everything but the image.

How would I make it display?

Thanks

ETA: Folder hierachy

Plugins > New Folder > The HTMl Template and Image
#image #making #realtive #template #url

Trending Topics