please help – line breaks within post

0
please help - line breaks within post 1
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
please help - line breaks within post 2
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
please help - line breaks within post 3
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://pickplugins.com/documentation/post-grid/action-hooks/post_grid_layout_element_id/

Regards

please help - line breaks within post 4
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

please help - line breaks within post 5
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