Title: czonex's Replies | WordPress.org

---

# czonex

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

 *   [Profile](https://wordpress.org/support/users/czonex/)
 *   [Topics Started](https://wordpress.org/support/users/czonex/topics/)
 *   [Replies Created](https://wordpress.org/support/users/czonex/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/czonex/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/czonex/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/czonex/engagements/)
 *   [Favorites](https://wordpress.org/support/users/czonex/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: [Multiple Excerpt Length](https://wordpress.org/support/topic/multiple-excerpt-length/)
 *  Thread Starter [czonex](https://wordpress.org/support/users/czonex/)
 * (@czonex)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-excerpt-length/#post-2912039)
 * i used the following code and it works fine on my local server **but** gives 
   an error on my hosting server …. using the same WP version on both places
 *     ```
       function custom_excerpt($new_length = 20, $new_more = '...') {
         add_filter('excerpt_length', function () use ($new_length) {
           return $new_length;
         }, 999);
         add_filter('excerpt_more', function () use ($new_more) {
           return $new_more;
         });
         $output = get_the_excerpt();
         $output = apply_filters('wptexturize', $output);
         $output = apply_filters('convert_chars', $output);
         $output = '<p>' . $output . '</p>';
         echo $output;
       }
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custum Post page design (need help)](https://wordpress.org/support/topic/custum-post-page-design-need-help/)
 *  Thread Starter [czonex](https://wordpress.org/support/users/czonex/)
 * (@czonex)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/custum-post-page-design-need-help/#post-2467677)
 * Hi kuldeepd,
 * I can use but my client can not, the post page would include DIVs and other tags

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