Title: johnep's Replies | WordPress.org

---

# johnep

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Include Post Excerpt ?](https://wordpress.org/support/topic/include-post-excerpt/)
 *  Thread Starter [johnep](https://wordpress.org/support/users/johnep/)
 * (@johnep)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/include-post-excerpt/#post-703401)
 * I cannot find `add_filter('the_content', 'process_postviews');`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Include Post Excerpt ?](https://wordpress.org/support/topic/include-post-excerpt/)
 *  Thread Starter [johnep](https://wordpress.org/support/users/johnep/)
 * (@johnep)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/include-post-excerpt/#post-703384)
 * What I really need to do is display the post content (ONLY before the <!–more–
   > tag). I am able to add the entire post content by using “post_content”, however
   I just want to display the content before the <!–more–>…
 * I have to edit something here (line 151 in postviews.php):
 *     ```
       if($chars > 0) {
       				foreach ($most_viewed as $post) {
       					$post_title = htmlspecialchars(stripslashes($post->post_title));
   
       					$post_views = intval($post->views);
       					$post_views = number_format($post_views);
       					$temp .= "<li><a href=\"".get_permalink()."\">".snippet_chars($post_title, $chars)."</a></li>\n";
   
       				}
       			} else {
       				foreach ($most_viewed as $post) {
       					$post_title = htmlspecialchars(stripslashes($post->post_title));
   
       					$post_views = intval($post->views);
       					$post_views = number_format($post_views);
       					$temp .= "<li><a href=\"".get_permalink()."\">$post_title</a></li>\n";
   
       				}
       ```
   

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