Title: bluewater2's Replies | WordPress.org

---

# bluewater2

  [  ](https://wordpress.org/support/users/bluewater2/)

 *   [Profile](https://wordpress.org/support/users/bluewater2/)
 *   [Topics Started](https://wordpress.org/support/users/bluewater2/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bluewater2/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bluewater2/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bluewater2/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bluewater2/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bluewater2/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Ashe] Ashe Theme RSS Feed for Mailchimp](https://wordpress.org/support/topic/ashe-theme-rss-feed-for-mailchimp/)
 *  Thread Starter [bluewater2](https://wordpress.org/support/users/bluewater2/)
 * (@bluewater2)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/ashe-theme-rss-feed-for-mailchimp/#post-16314799)
 * Found the Code with causes the error in the function.php under “Custom Excerpt
   Length”.
 *     ```wp-block-code
       /*
       **  Custom Excerpt Length
       */
   
       function ashe_excerpt_length( $link ) {
   
       	if ( is_admin() ) {
       		return $link;
       	}
   
       	$link = sprintf( '<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
       		esc_url( get_permalink( get_the_ID() ) ),
       		/* translators: %s: Name of current post */ 
       		sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'ashe' ), get_the_title( get_the_ID() ) )
       	);
   
       	return 2000;
       }
   
       add_filter( 'excerpt_length', 'ashe_excerpt_length', 999 );
   
   
   
       function ashe_new_excerpt( $link ) {
   
       	if ( is_admin() ) {
       		return $link;
       	}
   
       	$link = sprintf( '<p class="link-more"><a href="%1$s" class="more-link">%2$s</a></p>',
       		esc_url( get_permalink( get_the_ID() ) ),
       		sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'ashe' ), get_the_title( get_the_ID() ) )
       	);
   
       	return '...';
       }
       add_filter( 'excerpt_more', 'ashe_new_excerpt' );
   
       if ( ! function_exists( 'ashe_excerpt' ) ) {
   
       	function ashe_excerpt( $limit = 50 ) {
       	    echo '<p>'. wp_trim_words(get_the_excerpt(), $limit) .'</p>';
       	}
   
       }
       ```
   
 * But I don’t know why it causes this error. If I comment all the code from above
   out and change it to this, it works. [@wprsupport](https://wordpress.org/support/users/wprsupport/)
   Do you know why it make this error?
 *     ```wp-block-code
       // Filter the except length to 50 words.
       function ashe_excerpt_length( $length ) {
       	return 50;
       }
       add_filter( 'excerpt_length', 'ashe_excerpt_length', 999 );
   
       function ashe_excerpt() {
   
       	/**
       	 * Filters the displayed post excerpt.
       	 * @since 0.71
       	 * @see get_the_excerpt()
       	 * @param string $post_excerpt The post excerpt.
       	 */
       	echo apply_filters( 'ashe_excerpt', get_the_excerpt() );
       }
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Ashe] Ashe Theme RSS Feed for Mailchimp](https://wordpress.org/support/topic/ashe-theme-rss-feed-for-mailchimp/)
 *  Thread Starter [bluewater2](https://wordpress.org/support/users/bluewater2/)
 * (@bluewater2)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/ashe-theme-rss-feed-for-mailchimp/#post-16308207)
 * Thank you. I will send you an email.

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