In one of my posts, I have specified a url to an image for the excerpt.
Now when I use the the_excerpt() function to fetch that url:
<li><img src="<strong><?php the_excerpt();?></strong>" alt="" /></li>
…the following happens:
<img src="<p>http://localhost/includes/assets/img/folio/eenappje.png</p>" alt="">
As you can see, a “<p>” and “</p>” are added to the beginning and end of the url.
How can I stop this?
- The topic ‘Problem with the_excerpt’ is closed to new replies.