我想在WordPress中以此特定布局显示我最近的博文。 它位于下面: p>
1 | 2 | 3
-----
4 | 5 | 6
code> pre>
\ n 这是我到目前为止的代码..... p>
< div class =“container post_container”>
< div class =“row” >
< div class =“col-xs-12”>
< h1>最近的帖子< / h1>
<?php
$ recentPost = new WP_Query('type = post& posts_per_page = 6& order = ASC&');
if(have_posts()){
while($ recentPost-> have_posts()){
$ recentPost-> the_post( ); ?&n;
< br>
< br>
< div class =“posts_table”>
< - 将显示所有最近的帖子 - >
< / div>
<?php
}
}
?>
code> pre>
我想使用WordPress循环显示按时间顺序排列的最后六个帖子,我不知道如何创建它并且非常困惑。 我不知道我是否应该使用HTML表格或Bootstrap网格或两者兼而有之? p>
div>