• 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)
  • Thread Starter atypicalchuck

    (@atypicalchuck)

    For some reason my post cut out the p tags I placed in, here is the code product with [p] [/p] used for the normal ones:

    <img src=”[p]http://www.atypicalweb.com/mt-icons/siteicon.jpg[/p]
    “>

    dupe=http://wordpress.org/support/topic/87516?replies=3

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Removing <p></p> tags from excerpt’ is closed to new replies.