How to remove the HTML of the post in the homepage preview
-
Hello, if I write a post like this:
================
hello, this is a test post. This is to show you how it looks like in the homepage, in the categories pages, in the tag pages and in the archives. With this theme I have to pay attention when I add whatever kind of html tags to the text, especially if they are at the beginning of the posts.
================In the homepage it appears like this:
hello, this is a test post. This is to show you how it looks like in the homepage, in the categories pages, in the tag pages and in the archives. With this theme I have to pay attention when I add <strong>whatever kind Read More
If the read more cuts a
<b> tag, a <i>, <strong>, <h1>, <h2>, <img>
,<a>
etc, the tag does not get closed.For example, if the latest words before the “Read More” have a “a href”, then ALSO the “Read More” button, will link to that href, instead than to the post article.
This is the PHP code in question:
https://pastebin.com/5gVCKSLLI have no idea how to resolve this. Did you get what I mean?
- The topic ‘How to remove the HTML of the post in the homepage preview’ is closed to new replies.