Enable HTML tags in Essential Grid Excerpt

I am building a post grid in Essential Grid. I have it showing the post excerpt on hover, however, it is getting rid of the <strong> and <br> tags that are in the excerpt.

I had initially built this same grid in “The Grid” and it kept the excerpt formatting, so I am assuming it is something within Essential Grid that is preventing correct formatting. I only decided to move to Essential Grid because I wanted some of the extra hover and lightbox capabilities. If I can get the excerpt HTML fixed, it will be the perfect solution.

I have tried different variations of the code posted here with no luck. It seems like someone found a solution here but they didn’t end up sharing it.

You can see my example grids here. The top ones was made with The Grid and has correct formatting. The bottom is the new one that I want to achieve HTML in the excerpt with.

Any help would be greatly appreciated!

Thanks

Josh

Ok what I have figured out is that HTML is preserved if the the grid source is “Media” because it pulls from the “caption” rather than excerpt. However, I would really like to use a post gird so if I can preserve HTML in the excerpt I would be very happy.

Ok, I decided to try adding a custom field in ACF and using a custom meta in Essential Grid to display that field. This has solved the HTML issue. If there is an easy solution to keep html in Excerpts I would still be interested to know.

Hello Josh,

Thanks for writing in! Just for future topics, self responding or bumping your post pushes it back in our Queue system so it takes longer to respond to.

Please be advised that the excerpts were auto generated by Wordpress taken from the very first 55 words of the post content by default. Any html codes and any shortcodes will be stripped off. Only plain text will be displayed in the resulting excerpts. To fully understand the excerpts, please check out this codex: https://codex.wordpress.org/Excerpt

Hope this explains it.

I was using manual excerpts! I’m just assuming Essential Grid is set to strip HTML tags anyway.

Hi again,

By default WordPress strips html tags from excerpts as excerpt is supposed to be plain text. You can checkout the following thread for the alternative solutions https://stackoverflow.com/questions/24151161/how-to-prevent-wordpress-from-stripping-html-tags-in-excerpt

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.