I was able to find the problem. There was a home.php file in my themes directory in wp-content. Due to the template hierarchy of WordPress, the blogs page was reading from this home.php file, where I had some HTML. Since I was the one who had created this file, on deleting it, the Posts page worked correctly.
Related Posts:
- Connection lost. Saving has been disabled… (Updating Posts/Pages)
- Fatal error: Call to undefined function post_exists()
- strip only specific tags (like ), but keep other tags (like )
- Removing the title attribute from links in the post content
- HTML code in Custom field
- How to wrap every image in a post with a div?
- Paragraphs removed when using get_post_custom()?
- get_post_custom stripping styling issue
- why does HTML Tag not working in Post and Page
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- Sql syntax error
- Fatal error post.php help :(
- ‘Invalid post type’ error when importing from one site to another
- PHP Notice error (when on 404 page)
- Add scripts on custom post add/edit pages Not Working
- Add code just after Post content
- Getting a 404 error when clicking edit page
- WordPress’ visual editor messing up my (nested) lists (and other things as well)
- Articles are text-only in any “Category” instead of HTML
- White Blank Page when Updating and Publishing Page/Post
- Ajax Dynamic Archives not showing correct results
- Classic editor throws 403 error based on post content
- Ajaxify This Code
- Pausing and Resuming WP_Query results
- Encountering “Wrong nonce. Action prohibitied.” when trying to alter User Role and unable to Post via WP Admin
- why are images not full size?
- Is Hfeed class for all pages needed
- Blank page when saving edits on post
- Anyone know why wordpress converts some html entities to their numeric equivalents?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- Best Way to Add UnEditable HTML to Posts
- getting “Object of class WP_Post could not be converted to string” – when it is a string
- Divs appearing everywhere in post content
- Benefits to using semantic HTML in post content? [closed]
- Creating a WordPress Post via REST API – HTML or Markdown?
- HTML Form Submit to table in same page
- Locally change the font family [closed]
- My post does not show up
- Right align a youtube video
- Featured Images most often doesnt appear
- WordPress Post 403 Error Based on Slug
- WordPress 5: prevent link from displaying page title instead of URL
- My posts are getting to Auto draft when I try to Publish
- WordPress Recent Post with the badge “New” on the side of the title post
- Remove HTML tags from all posts
- Many buttons not functioning in WordPress dashboard (as admin)
- Checking if a post contains an html tag
- How to generate an HTML link automatically from URL in a users’ post
- Show all posts from the tags without having to set all of them
- Adding div to WordPress page content
- All my posts don’t show, only the headline is displayed on the homepage
- Posts don’t appear on Template Page
- Authentication over CURL
- Get post title by Alphabet
- How to get all the terms of a post
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- Wrap posts from a category in HTML
- How can I add a custom caclulation form in post?
- How to automatically convert a form with HTML link into post
- Admin notice on wp_insert_post
- Custom colors for post rows based on post meta value
- Delete Post From Front-End and attachment permanently
- disable column on post and user list
- Multiple social buttons with a fast loading? [closed]
- How can I display widget in a Page or Post?
- Multiple posts with fixed order position
- Display Meta Values in Custom Filter – Admin Custom Posts
- Get user categories with most posts in it
- How to display two blog categories as separate sections on one page?
- Retrieve post ID from “querying” URL
- When open add new post or page WordPress add post with ID=0 continuously [closed]
- How to make a sum of all posts displayed in a loop
- First x post with another template then the others
- Assign published posts to another user automatically
- add bootstrap post slider with tabs
- Fast publishing in wordpress
- Getting Duplicate Posts on Home Page with Widget Added Between Posts
- Add Blog to WP homepage Manually
- Getting property of non-object when looping through post objects from ACF
- How to get the ability to change the author of a post
- Defined function isn’t showed on page
- How to embed the content of one post into another site
- How to add tag(s) to all posts from a specific category? [duplicate]
- Open posts in popup window
- How to merge the content of posts that have the same title?
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- ‘QTags.addButton: arg2 distorts the button rather than just shows
- How do I assign an attachment to a post using only the REST API?
- Sorting post by custom field and category
- WordPress display page information rather than post
- Post Category link is same with Page link
- I need show posts by customer (Shortcode)
- ACF Relationship – Get Parent’s Post Object
- Pagination and Related Posts
- Loop through posts by each term and exclude duplicate posts assigned to several terms
- Post thumbnail dependant on category
- Get post title of faulty link on 404 error page
- Change posts URL [duplicate]
- How do i put a sidebar on my post permalink page?
- What template file is used by default for posts?