Did you try this one?
<?php
$blogpost = new WP_Query(array(
'post_type' => 'post',
'posts_per_page' => 6
));
?>
<?php while($blogpost->have_posts()) : $blogpost->the_post(); ?>
// Writhe your Blog article Here.
<?php endwhile; ?>
Related Posts:
- Should we trust the post globals?
- How to exclude latest x posts from a paginated query?
- How to exclude latest x posts from a paginated query?
- Advanced Post Display/Pagination/Ordering
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- How to limit the number of posts that WP_Query gets?
- Random sort within an already sorted query
- WP_Query: Why is sticky post not first item in loop?
- Query *only* sticky posts
- How do I reorder (pop and push) items from WP_Query?
- How to know if get_posts() failed?
- Reverse chronology of post listing
- Looping through posts per category gives same posts for each category
- This AJAX Code Doesn’t Work – Looking for elegant solution
- How to add posts to wp_query result?
- Specific loop in Shortcode
- Search widget breaks when using multiple loops?
- Should ‘setup_postdata()’ be reset with ‘wp_reset_postdata()’?
- Replace Main Query With Custom Query
- Custom Order in WP Query
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Search query – exact post title match
- Converting multiple loops into one single loop with pagination
- Group posts by year in loop
- posts_per_page doesnt work
- How would I get 1 latest post from a query for 5 posts?
- How to start with post number x?
- Exclude posts with empty post_content in wp_query
- Only display a certain number of posts, dependent on how many posts there are available in a query
- Loop through all product posts?
- Improving WP_Query for performance when random posts are ordered
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- WP Query – duplicated posts once including tags in search results
- Display post from current category and same tag?
- how to get posts ids inside pre_get_posts filter?
- Get Posts that are in the current month or later
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Blog post per page setting conflicting with custom WP_Query?
- Blog page pagination is not working after using the offset argument
- Posts will not display on page-mypage.php
- WP Query – Posts Per Page not working in combination with category__in
- Pausing and Resuming WP_Query results
- How to : pagination in 3 different custom loops on the same page
- Exclude the first ‘n’ number of posts of a tag from home page?
- List authors with the last post title and order by last post date
- wp_query random post
- How to setup a query to output posts by groups of five?
- Possible to alternate between two loops
- Exclude current custom post on single post
- First x post with another template then the others
- Why Query is returning empty array?
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- meta_value timestamp older than now
- post__in not working with pre_get_posts, but post__not_in does work
- Query for first 3 posts to change the look and feel
- How to get posts published on the latest date?
- Why posts array is empty?
- Page and post loop same template
- Getting blog pagination to work on page set as front page
- WP_Query: Show 10 posts in date order, first three random
- Exclude some posts from displaying in wp_query based on some condition
- WordPress Loop: How to display recent posts in multiple divs
- Related Posts function not working
- How to display post list in a table layout (multiple queries in single loop)
- Not all posts showing in query
- how to handle the loop using filling bootstrap grid structure?
- How to convert query sql to shortcode in wordpress?
- WordPress loop not working on static front page
- Some doubts about how the loop work (trying debugging it)
- Custom WP_Query not working correctly
- WP_Query of Category Not Showing First Post
- Display 3 posts with different HTML markup using a loop
- Get current taxonomy and display query accordingly
- How Can I Always Display A Particular Post First Using WP_Query?
- How do I display main query posts in random order using add_filter
- WordPress Query – Display 5 posts (same post type), each from a given tag
- While loop in functions.php outputting the_title() of each post on frontpage
- Display specific posts based on an ID of another post
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- show loop id post , only first id can read
- filter posts based on menu_order
- Show 5 posts and than 3 posts offset with pagination
- Double loop output
- Loop through all posts showing duplicates
- Wp_query loop is not working as it should
- WordPress loop uses unmodified posts array, why?
- wp query custom orderby not custom field
- Display the latest post from some selected authors
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- How to show the posts list into a static page? Problems to use the loop into a static page
- Grab next post title in archive page
- Adding a category at even positions on main loop with modified pagination
- Displaying Results From Custom Taxonomy Query
- Make assigning post to a specific category equivalent to assigning it to all categories
- WP_Query retrieve custom posts but not the post showing
- How do I show the post title if an advanced custom field hasn’t been used?
- First post in loop displays twice
- WP_query sort by custom meta_key “price”
- Wp_query WooCommerce products
- posts_per_page – Repeats only first posts ‘post__in’ array