Option to “Retain HTML format” in the excerpt of Post Grid and Post Masonry
-
Hello,
first of all thank you all for this wonderful plugin.
Is there a way to retain the HTML format in the excerpt of Post Grid and Post Masonry?
I tried to use:add_filter('uagb_single_post_excerpt_grid', function($excerpt, $id, $attr) { return get_the_content(); },10, 3 );
But with this way some HTML codes work fine and other codes likes <figure> and <embed> will be stripped. The problem with this code is also that the count of characters/words can not be controled.
I also tried:
add_filter('uagb_single_post_excerpt_grid', function($excerpt, $id, $attr) { return the_content(); },10, 3 );
With this code all HTML will work fine but the problem is also that the count of characters/words can not be controled.
Do you have any suggestion how I can retain the complete HTML format in the excerpt of Post Grid and Post Masonry? And at the same time to be able to controle the count of characters/words.
- The topic ‘Option to “Retain HTML format” in the excerpt of Post Grid and Post Masonry’ is closed to new replies.