Because you’re on a page, that’s only going to display the query for that page. As such, you’d have to create a new query to bring in the posts you want. Replace your loop with this:
<?php
$args = array(
'post_type' => 'post'
);
$post_query = new WP_Query($args);
if($post_query->have_posts() ) {
while($post_query->have_posts() ) {
$post_query->the_post();
?>
<h2><?php the_title(); ?></h2>
<?php
}
}
?>
Here some more information on the query: http://codex.wordpress.org/Class_Reference/WP_Query
Related Posts:
- Should we trust the post globals?
- Clear cache when a post is submitted [closed]
- disable WP automatically inserted line breaks after an image
- How to Arrange Posts by Size in the WordPress Dashboard?
- delete post also attachments
- How do I create a featured post within a custom post type?
- Rewriting WordPress core functionallity: Changing the private posts
- Prevent WordPress from giving each post a number
- Post author is changed to admin after his post is modified by admin
- WordPress Rest API – Get all posts based on post_meta on custom endpoint
- Link for the page archive for posts, like using custom post types with get_post_type_archive_link
- Limit amount of results returned
- How to update serialized post meta?
- Can wordpress differentiate between added and updated posts?
- Require a featured image to publish post
- Show Blog posts from other site to WordPress without RSS Feed
- Making post views as sortable
- All my inserted images gets a link to the full image even if it is already full size image
- Frontend Post Form Validation
- Disable single post page
- Post update RSS notification plugin
- Global $post not working in OOP function WordPress
- Bulk unpublish posts between specific dates (e.g. from April 2017 and earlier)?
- WP_Query get posts from custom posts by category
- Accessing post->ID outside of the loop for listing child pages
- How to filter posts that belong to a specific category only if that is the only category
- Adding parent pages to posts
- Hiding Posts on Front Page and from all plugins
- Limit posts per author role (excluding admin) in home page
- Modify Image Source With The_Content Filter?
- I want to display custom text widgets for each post in the sidebar?
- remove older posts link [closed]
- How to show user’s own post in a specific page
- Search by post title and content in wp_query without order
- How to create a post using REST API with sending data as a JSON body?
- Add filter by custom field to block of posts
- How to access $post from a callback function
- How can i limit the number of posts created per category?
- WordPress capabilities on pending post status
- Remove a shortcode from all WordPress posts
- post category in wp_insert_post
- Show comment number per author per day
- Hide comments and posts posted by other user
- How to remove specific tag from multiple posts?
- Manage Private Posts
- Why this function doesn’t works without the_post?
- How to get post with associated categories and tags names instead of ids with rest api?
- How to get the old WordPress Draft Editor view back with the Word count?
- Updating post meta for checkbox
- How to make Link to go on the first post
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- How do I limit the number of posts displayed to one?
- How do I switch css class on post
- Can’t save WordPress post with “/etc/” in it
- Lightbox on wordpress post page
- WordPress Architecture as a CMS – Posts & Pages
- Getting post and attached image from subdomain
- How to list post as buch of category, and all of them
- Is it to possible to insert a page in the post depending on the category ofthe post
- How to display a “NEW”-icon on posts from today
- How to get post id of last approved comment?
- Trim posts from WP-Query?
- Remove subcategory slug from url
- Posting to WP via URL
- Not adding a new post?
- Prevent the automatic URL linking added in last update
- Getting image data from phone camera (MediaDevices.getUserMedia) into user post
- how can i take wordpress post as embed?
- Prevent a post with a specific ID from being created
- Thumbnails and images in the blog post are not loading
- Automatically delete post in a single category when a new one is created
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- WordPress Website is Auto-Posting strange posts
- Multiple posts in one page
- post__in no longer works in wordpress 5.0.3
- How to count posts in tags within time limit
- delete post hook not being fired when deling in wordpress dashboard admin
- What’s the best approach to create duplicated pages with paginated posts?
- How to allow some visitors to edit inline specific post
- Manipulate query to show specific post
- alt of attached image in post / pages
- Display post in visual composer with custom html
- How to display most popular posts from certain category in sidebar?
- Is possible to do this from function.php
- Hook To Get All Posts Deleted
- Have latest post and recent posts display differently
- Make Show Notes for Individual Podcast Episodes Easy to Find (multiple URL’s?)
- Users cannot post when editor or admin on more than 1 site on multisite
- Creating / Editing a post from within site template
- display only the title of the post into a certain category
- How to get override the WP Admin Syndication feed limit for a custom feed?
- Redirecting to a post based on a GET parameter and a custom field
- WordPress “Posts Page” isn’t showing template dropdown
- Post only showing on homepage when Logged in – direct URL still working
- Adding Count Post in Page
- How can I get on the same row two post of different categories?
- Custom post order returning posts from other categories
- How add class the_content();?
- Title displaying multiple times
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?