Keep html formatting in post masonry grid excerpt
-
Hi I have tried using the code
`add_filter(‘uagb_single_post_excerpt_masonry’, function($excerpt, $id, $attr) {
return get_the_content();
},10, 3 );And now the html formatting in the grid is maintained, but I get the entire post, instead of the excerpt. How can I display just the required word count, and keep the html formatting?
Many Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Keep html formatting in post masonry grid excerpt’ is closed to new replies.