I want to display my recent blog posts in this specific layout in WordPress. Here it is below:
1|2|3
-----
4|5|6
Here is my code so far.....
<div class="container post_container">
<div class="row">
<div class="col-xs-12">
<h1>Recent Posts</h1>
<?php
$recentPost = new WP_Query('type=post&posts_per_page=6&order=ASC&');
if(have_posts()) {
while($recentPost->have_posts()) {
$recentPost->the_post(); ?>
<br>
<br>
<div class="posts_table">
<--Where all recent posts will be displayed-->
</div>
<?php
}
}
?>
I want to use the WordPress loop display the last six posts going in chronological order and I have no idea how to create it and very confused. I have zero idea if I should be using HTML table or Bootstrap grids or both?