Removing <p></p> tags from excerpt
-
I am trying to use the excerpt so that I can type in a link to an image (I.E. http://www.imagesite.com/image.jpg) without quotes and have that url be inserted into my main page using the following code:
<img src=”<?php the_excerpt(); ?>”>
However, the excerpt has these tags on both sides of the url automatically and the code ends up looking like this (imagine the [p][/p] tags are the normal html ones… this post ate them when I first posted):
<img src=”[p]http://www.atypicalweb.com/mt-icons/siteicon.jpg[/p]
“>
Can someone tell me what I am doing wrong and how to fix it? 🙂
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Removing <p></p> tags from excerpt’ is closed to new replies.