Title: html excerpt
Last modified: September 1, 2016

---

# html excerpt

 *  Resolved [Sherry22](https://wordpress.org/support/users/sherry22/)
 * (@sherry22)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-excerpt/)
 * How do I add html ie 
    or <p> to excerpts?
 * [https://wordpress.org/plugins/post-grid/](https://wordpress.org/plugins/post-grid/)

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

 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-excerpt/#post-7696756)
 * Thanks for your post,
 * There is a filter hook `post_grid_filter_grid_item_excerpt`
 * you can use to filter excerpt.
 * Please see the code here
 * [http://pickplugins.com/docs/documentation/post-grid/filter-hooks/filters-post_grid_filter_grid_item_excerpt/](http://pickplugins.com/docs/documentation/post-grid/filter-hooks/filters-post_grid_filter_grid_item_excerpt/)
 * you need to add the code on your theme functions.php file to works.
 * Let me know the result.
 * Regards
 *  Thread Starter [Sherry22](https://wordpress.org/support/users/sherry22/)
 * (@sherry22)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-excerpt/#post-7696760)
 * Did you get this working. I want have hard returns after excerpt lines 
    and 
   <p> but adding this code didn’t work
 *  Thread Starter [Sherry22](https://wordpress.org/support/users/sherry22/)
 * (@sherry22)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-excerpt/#post-7696766)
 * I added this
    function post_grid_filter_html_media_extra($html_media){ return‘
   Before ‘.$html_media.’ After ‘; } add_filter(‘post_grid_filter_html_media’,’post_grid_filter_html_media_extra’);
 * but In my excerpt I am not getting hard return 
    or <p> working on site view.
 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-excerpt/#post-7696890)
 * you need to customized code your own.
    try this,
 *     ```
       function post_grid_filter_grid_item_excerpt_extra($excerpt){
   
           return '<p>'.$excerpt.' </p>';			
   
         }
   
       add_filter('post_grid_filter_grid_item_excerpt','post_grid_filter_grid_item_excerpt_extra');
       ```
   
 *  Thread Starter [Sherry22](https://wordpress.org/support/users/sherry22/)
 * (@sherry22)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/html-excerpt/#post-8161890)
 * sorry for the delay.. I just added this code to my functions file (customizr 
   theme) but still not supporting <p> in my excerpt I have
    <p>line 1</p> <p>line
   2 </p>
 * etc any other ideas? thanks
 *  [nicecap](https://wordpress.org/support/users/nicecap/)
 * (@nicecap)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/html-excerpt/#post-8639851)
 * Hello,
    how can this post be resolved when we cannot see what measures had been
   taken to resolve the problem? Chris

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

The topic ‘html excerpt’ is closed to new replies.

 * ![](https://ps.w.org/post-grid/assets/icon-256x256.gif?rev=3295086)
 * [Post Grid](https://wordpress.org/plugins/post-grid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-grid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-grid/)
 * [Active Topics](https://wordpress.org/support/plugin/post-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-grid/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [nicecap](https://wordpress.org/support/users/nicecap/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/html-excerpt/#post-8639851)
 * Status: resolved