Title: the_excerpt function
Last modified: August 18, 2016

---

# the_excerpt function

 *  Resolved [alvanweb](https://wordpress.org/support/users/alvanweb/)
 * (@alvanweb)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/)
 * I want create a public linkdump with wordpress Than users can register and enter
   
   Links. I usage this method:
 * Title fild: for link title
    Excerpt box: for link Url And Post box for link description.
   but the_excerpt function return a <P> tag in link url address.
 * This is true about the_excerpt function because its relates excerpt text.
    at
   present how I remove <P> tag in output the_excerpt function?

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234418)
 * Try:
 * `<?php the_excerpt_rss(); ?>`
 * This will not *impose* any HTML on the excerpt. If that doesn’t work for you,
   you could display the excerpt raw:
 * `<?php echo $post->post_excerpt; ?>`
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234422)
 * Oh! So, is this true, that the excerpt puts a p-tag into the links? There is 
   nothing about in the Codex 🙁
    There was a discussion yesterday ( [http://wordpress.org/support/topic/39098](http://wordpress.org/support/topic/39098))
   and couldn’t find any explanation for the  in the links… Maybe that photoblog
   theme uses the excerpt???
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234424)
 * “Oh! So, is this true, that the excerpt puts a p-tag into the links”
 * Not quite. the_excerpt() places the excerpt text _in_ paragraph elements, for
   purposes of making it valid XHTML (text out on it’s own is not).
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234429)
 * OK, maybe my wording is not perfect (it never is 😉 but, please, be patient with
   me: would that mean that having in the excerpt something like
    `<a href="http://
   example.com/?p=2"><img src='/images/pic.jpg' alt='pic' width="800" height="600"/
   ></a>` would end up in the displayed code as: `<a href="http://example.com/ ?
   p=2"><p><img src='/images/pic.jpg' alt='pic' width="800" height="600"/></p> </
   a>
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234443)
 * On wording: I just wanted to be clear. `;)`
 * As for the  issue, it’s:
 * `<a href="<?php the_permalink(); ?>"><?php the_excerpt(); ?></a>`
 * that leads to:
 * `<a href="http://example.com/?p=2"><p><img src='/images/pic.jpg' alt='pic' width
   ="800" height="600"/></p></a>`
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234447)
 * Actually, I am not 100% sure. See the topic I linked above, where the issue came
   up, and we couldn’t figure out where those `<p>` tags were coming from. I had
   to give up finding a solution, but now reading this thread suddenly I had this“
   genial” idea that the p-things might be related 🙂
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234448)
 * On this I am 99.99996% certain the theme is using the example above to display
   the image as a link.
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234449)
 * Of or relating to the chin, moshu? As in taking it on the chin? 😉
 *  [kusman](https://wordpress.org/support/users/kusman/)
 * (@kusman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234704)
 * But it come to block all the excerpt text. I am only want the link only at the“[…]”
 * “
 * Any idea..?
 * Thanks
    [http://www.budidayalobsterairtawar.com](http://www.budidayalobsterairtawar.com)
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234705)
 * No ideas…
    The “[…]” is NOT a link. Doesn’t work like that. Sorry.
 * With the expert the permalink is the title. Nothing else.
 * And the “more” does NOT work with the_excerpt. Only with the_content. But in 
   that case you have to insert the “more” tag manually into the text where you 
   want to break it.
 *  [kusman](https://wordpress.org/support/users/kusman/)
 * (@kusman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234706)
 * Oh.. I am tried to find like this.. Finaly my trick is correct.
 * How to use the “more” tage.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234707)
 * When you write a post you have to insert the tag in the text.
    If you use the
   WYSIWYG editor there is a button for it: between the Image and Undo buttons.
 * If you use the normal html editor – there is a “Quicktag” for it above the Write
   textarea.
 * The code is `<!--more-->`
 *  [kusman](https://wordpress.org/support/users/kusman/)
 * (@kusman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234708)
 * Your mean that the <!–more–> should be put in the post not in the .php ?
 *  [joshziman](https://wordpress.org/support/users/joshziman/)
 * (@joshziman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234709)
 * Just briefly read the title and first post cause I gotta go soon, but I came 
   across this plugin today, works good, requires some but minimal promgramming 
   skills.
 * [The Excerpt Reloaded](http://guff.szub.net/2005/02/26/the-excerpt-reloaded/)
 *  [kusman](https://wordpress.org/support/users/kusman/)
 * (@kusman)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234710)
 * Thanks joshziman
 * I work great as what I want.

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

The topic ‘the_excerpt function’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 6 participants
 * Last reply from: [kusman](https://wordpress.org/support/users/kusman/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/the_excerpt-function/#post-234710)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
