please help – line breaks within post

Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to support@pickplugins.com
0
Anonymous
Nov 17, 2018 07:20 AM 1 Answers General
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

I am unable to have line breaks show up within the grid. they do show up on the original pages and my HTML is not disappearing, thy just aren't working within the grid.

2 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
PickPlugins
Nov 17, 2018
Flag(0)

Welcome to our forum.

you might be using the excerpt on layout editor, that doesn’t display any HTML tags, you could try following plugin to keep html/styling excerpt https://wordpress.org/plugins/advanced-excerpt/

otherwise, there is a filter hook for excerpt you can display your own excerpt as you want.

Please see the documentation.

https://www.pickplugins.com/documentation/post-grid/filter-hooks/filters-post_grid_filter_grid_item_excerpt/

Regards

PickPlugins
- Feb 09, 2019 09:22 AM
Flag (0)
0

Can you please explain what you are planning to do with this code? hope i can help you.

Regards

kevinashworth
- Feb 09, 2019 08:37 AM
Flag (0)
0

function post_grid_filter_grid_item_excerpt_extra( $excerpt ){
$myexcerpt = get_the_excerpt(get_the_id());
return wpautop($myexcerpt);
}
add_filter( 'post_grid_filter_grid_item_excerpt', 'post_grid_filter_grid_item_excerpt_extra' );

Sign in to Reply
Replying as Submit

Please use https://imgur.com/upload to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets