Title: [Plugin: Email Users] Excerpt alternative
Last modified: August 20, 2016

---

# [Plugin: Email Users] Excerpt alternative

 *  [Ponç J.](https://wordpress.org/support/users/pjllaneras/)
 * (@pjllaneras)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-email-users-excerpt-alternative/)
 * I have made an alternative code to get the excerpt from posts. In my blogs, the
   users don’t use the _more_ tag, they use the excerpt field… in this case, the
   plugin use all post to send the email, and this is not what we want.
 * I have made this changes in _email\_users\_notify\_form.php_ and _email\_users\
   _options\_form.php_:
 *     ```
       $post_content = explode( '<!--more-->', $post->post_content, 2 );
       $post_excerpt = $post_content[0];
       ```
   
 * for
 *     ```
       // first we take the excerpt from the field excerpt it there aren't any we look for "more" tag
       $post_excerpt = $post->post_excerpt;
       if ($post_excerpt == "") {
       	$post_content = explode( '<!--more-->', $post->post_content, 2 );
       	$post_excerpt = $post_content[0];
       }
       ```
   
 * [http://wordpress.org/extend/plugins/email-users/](http://wordpress.org/extend/plugins/email-users/)

The topic ‘[Plugin: Email Users] Excerpt alternative’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-users_a0e0cf.svg)
 * [Email Users](https://wordpress.org/plugins/email-users/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-users/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-users/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ponç J.](https://wordpress.org/support/users/pjllaneras/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-email-users-excerpt-alternative/)
 * Status: not resolved