[SOLVED] paragraphs tags not showing in wp content fetched from get_the_content() or paragraphs not showing at front end added from wp-editor

Recently I faced a very wierd issue while adding a post from wp-admin that on adding paragraphs from wp editor, the paragraphs were not showing at front end. The issue was that I have used get_the_content function.

When we use the_content function to show the content o post/page then filters added for the_content also execute ,one of them used to show content with <p></p> tags which are added from wp-editor while adding content. So, when we use get_the_content function, this filter does not execute, so content shows without paragraphs which looks very ugly if there is very large content added. Keep on reading