Display issue in search results
-
Great plugin!
I noticed that the summary of posts in the search results is cutting off html code and breaking the css style. For example, if there is an image at the beginning of an article and the length of the HTML code for that image is beyond the max characters allowed in the summary, all subsequent articles do not display correctly.For example, if there is an image at the beginning of the article, it’s HTML code will be cutoff <img src=’image.jpg… Read more. All articles that appear below this one will not display properly. I fixed this by making the character limit 0:
<p><?php echo kbe_short_content(0); ?></p>
Is there anyway to ignore HTML code in the character count?
Another user posted their site which also has the problem:
https://getnoticedlocally.co.uk/?s=how&post_type=kbe_knowledgebase
Notice how article ‘How to Change the Text on a Page’ and all others below it don’t appear correctly.
- The topic ‘Display issue in search results’ is closed to new replies.