Title: the_excerpt()
Last modified: August 20, 2016

---

# the_excerpt()

 *  Resolved [bondweb](https://wordpress.org/support/users/bondweb/)
 * (@bondweb)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/)
 * I want change excerpt text value, for diplay less strings in abstract’s articles,
   how can I do?
 * Thanks for attention

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

 *  [patv](https://wordpress.org/support/users/patv/)
 * (@patv)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868070)
 * You can redefine the length of the_excerpt() with the following filter:
 *     ```
       function custom_excerpt_length( $length ) {
       	return 60;
       }
       add_filter( 'excerpt_length', 'custom_excerpt_length');
       ```
   
 * [source](http://codex.wordpress.org/Function_Reference/the_excerpt#Control_Excerpt_Length_using_Filters)
 *  Thread Starter [bondweb](https://wordpress.org/support/users/bondweb/)
 * (@bondweb)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868073)
 * Is this function in function.php?
 *  [patv](https://wordpress.org/support/users/patv/)
 * (@patv)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868074)
 * please refer to the codex. it’s located in wp-includes/post-template.php.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868075)
 * > Is this function in function.php?
 * no;
 * you need to _**add **_the code into functions.php of your theme.
 *  Thread Starter [bondweb](https://wordpress.org/support/users/bondweb/)
 * (@bondweb)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868076)
 * Thanks you so much!!!!
 *  [patv](https://wordpress.org/support/users/patv/)
 * (@patv)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868077)
 * Oops, yes in the functions.php. misread 🙂
 *  Thread Starter [bondweb](https://wordpress.org/support/users/bondweb/)
 * (@bondweb)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868078)
 * I put it in pos-template and work very well 🙂

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

The topic ‘the_excerpt()’ is closed to new replies.

## Tags

 * [the_excerpt](https://wordpress.org/support/topic-tag/the_excerpt/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [bondweb](https://wordpress.org/support/users/bondweb/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/the_excerpt-4-2/#post-2868078)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
