I came across the same question on StackOverflow but the answer given to it is not working for me. I am facing the same issue as mentioned in this link and my content is showing like this:
Can anyone guide me on how to solve this issue? My front page was fine as long as I had not added the_content()
to it.
2
Answers
So finally I found the reason behind this issue. When I saw the code of page displayed in the browser using inspect then I found that wherever I was using the_content() WordPress was actually inserting content by enclosing it within HTML code as:
where the content was only:
Did not get the reason why it occurred may be due to some plugin or some other reason as I was not adding any HTML to $content using add_filter("the_content",'anyfuncname') in functions.php but for solving this issue, I then added add_filter to functions.php as:
So I used the strip_tags() function of PHP for stripping string which was the main content from $content. So this is how I solved this issue.
Hope this answer will help someone else in future
Rather than updating from frontend using css ,now follow the columns blocks in WP Block Editor to achieve what you want .