I found the actual answer in a stackoverflow question.
Quoted from the answer:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array( 'post_type' => 'post', 'posts_per_page' => 10, 'paged' => $paged );
$wp_query = new WP_Query($args);
while ( have_posts() ) : the_post(); ?>
<h2><?php the_title() ?></h2>
<?php endwhile; ?>
<!-- then the pagination links -->
<?php next_posts_link( '← Older posts' ); ?>
<?php previous_posts_link( 'Newer posts →' ); ?>
Related Posts:
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- is_singular won’t call my functions?
- taxonomy list display custom post count
- How to let custom post type posts show in standard post archive (like in homepage)?
- Display “Post 2 of 4” on single post page?
- Disable single pages and archives and keep preview
- Slug for standard post post_type
- How to create A-Z index listing for custom post types?
- Need post_type_archive_title function but in ‘single’
- How to show the archive / post type description on Single templates
- Can’t access private custom posttype single- or archives-page
- Display all Categories except ones with a specific parent
- How to achieve a multi-taxomony layout with posts?
- Assign for all post of a post type a specific single-post template
- How to set class to “current-page” on the currently viewed single post within a CPT
- is_singular won’t call my functions?
- Post URL redirecting to homepage
- Restrict custom post type to only site administrator role
- Get custom post type slug for an archive page
- How to force one column layout on custom post type edit page?
- Custom Post Type Archives by Date with Custom Permalink
- Limit the post for differents custom post type in the same wp_query
- Change plugin’s has_archive = true to false?
- Assigning a role to a specific custom post type (and ignoring other post types)
- Display posts in random post types
- Multiple Content Block
- Display Custom Post Type in Recent Posts
- IF statement in a do_shortcode
- Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post
- Remove All, Published and Trashed Post Views in Custom Post Type
- When ‘is_post_type_archive()’ return true?
- pagination redirecting from page number url before page requested
- CPT Archive with core Category
- Open Custom Post Type as PDF
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Update Post Meta for a logged in user
- WordPress showing archive.php instead page
- Get the category from custom post type
- Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?
- Setup template_redirect using has_term when NO term assigned
- Load Next Posts With AJAX not working with custom post type
- Single page not working for custom post type
- Create new custom post and post category of same name
- Archive not sorting correctly
- Load Next WordPress Posts With AJAX?
- multiple custom post type on category page
- Display custom post types in wp_list_pages
- If there is only one post (show elements) else (show other elements)
- Custom taxonomy or custom page templates?
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- Custom post type menu
- How do I add custom HTML to the content of an archive page’s posts?
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Modify Posts from Custom_Post_Type within the plugin
- How do I edit the WordPress post.php file?
- Posts are not rendering perfectly [closed]
- Custom Post Type Specific Post Template
- how to redirect to a custom post template
- Loop all post on single.php
- list articles in admin showing nested categories or slugs?
- Define multiple prefixes for custom post type
- Show posts from WP Custom Post Type selected from a field in a metabox
- order custom post type posts by custom date
- Custom WordPress theme not displaying posts from category
- How to show posts of the same category on a page?
- get_the_terms child terms for current post/custom post only
- custom post type to post association in wordpress
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- Order archive custom posts by taxonomy term [duplicate]
- custom post type single page
- custom post type single post preview for pending status
- How to get all posts related to a taxonomy?
- call a function when insert and update a custom post type
- Work and Display a Custom Post Type as a normal Post
- Custom post type with two templates
- DIVs not showing correctly on CPT?
- Custom Post Type
- Popup panel is only displaying 1 entry ignoring all others
- Custom Post Status & Taxonomies
- Custom Post type archives / categories give 404
- How to display data with pagaination on backend?
- Edit post meta direct from post.php?
- How to Arrange Support => Thumbnail
- Custom post type single display is ommited
- Archive.php is not displaying tags
- Front-end form submission not creating post
- Query child posts on parents single.php?
- Post being scheduled that shouldnt be schedulded
- paging is not working properly on news archives page [duplicate]
- Post type cloud like tag cloud?
- Change permalinks for posts but not custom post type?
- how to pass args for archive.php query?
- How to have a dynamic slug and rendering the archive-{post_type}.php?
- Canot save post if any meta box was empty
- How to develop Knowledge center in WordPress Website
- Drawbacks of making the default post-type: post hierarchical [closed]
- ACF – Tags not showing up in Custom Post Types
- Custom Post Type – archive working – single is not
- Custom Taxonomy archive with url parameters