Support » Fixing WordPress » How to get <p> out of the_excerpt?

  • Resolved mbalara

    (@mbalara)


    Easy question: when I use the_excerpt, it spits out the content enclosed in <p></p>. How do I makes those go away? I.e. how do I get *just* the content that’s actually in the excerpt field?

    More complicated background info: I’ve just imported over 260 posts into WP from MT. In MT I was using the excerpt field in each post for one image name, but without .jpg on the end. Yes, a dirty, filthy, stinking hack.

    *If* the_excerpt would leave the <p></p> out, then what I need would look something like this: <img src=”<?php the_excerpt(”); ?>.jpg”>.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to get <p> out of the_excerpt?’ is closed to new replies.