Php 博客列表页面中的Wordpress 2列

Php 博客列表页面中的Wordpress 2列,php,wordpress,templates,Php,Wordpress,Templates,我已经搜索了几个小时,试图找出如何在我正在工作的wordpress网站的博客页面上显示两列博客文章 WP版本是4.3 呈现博客文章列表的php文件是templates/posts.php 我试图找出如何修改此文件以显示简单的2列布局。我对它的展示方式并不挑剔。如果有人能给我指出正确的方向,或者给我一些最简单的方法。那太好了 提前感谢, 这是templates/posts.php文件 <?php $page_total = $wp_query->max_num_pages; $pag

我已经搜索了几个小时,试图找出如何在我正在工作的wordpress网站的博客页面上显示两列博客文章

WP版本是4.3

呈现博客文章列表的php文件是templates/posts.php

我试图找出如何修改此文件以显示简单的2列布局。我对它的展示方式并不挑剔。如果有人能给我指出正确的方向,或者给我一些最简单的方法。那太好了

提前感谢,

这是templates/posts.php文件

<?php

$page_total = $wp_query->max_num_pages;
$page_number = max(1, get_query_var('paged'));
$paging = blog_paging($page_number, $page_total);

$html = $paging;
while(have_posts()) {
    the_post();
    $html .= tabs(3).'<article id="post-'.$post->ID.'">'.PHP_EOL;
    $html .= tabs(4).'<header>'.PHP_EOL;
    $html .= tabs(5).'<h2><a href="'.get_permalink($post->ID).'">'.$post->post_title.'</a></h2>'.PHP_EOL;
    $html .= tabs(5).'<ul class="meta">'.PHP_EOL;
    $html .= tabs(6).'<li>'.get_comments_popup_link(__('Leave a comment', 'allsorters'), __('1 Comment', 'allsorters'), __('% Comments', 'allsorters'), 'comments').'</li>'.PHP_EOL;
    $html .= tabs(6).'<li><time datetime="'.$post->post_date.'">'.get_the_time(get_option('date_format')).'</time></li>'.PHP_EOL;
    $html .= tabs(6).'<li><em>by</em> '.get_the_author().'</li>'.PHP_EOL;
    //$html .= tabs(6).'<li>Posted in: '.get_the_category_list(', ').'</li>'.PHP_EOL;
    if(current_user_can('manage_options')) $html .= tabs(6).'<li class="button-edit-post"><a href="'.get_edit_post_link($post->ID).'">Edit</a></li>'.PHP_EOL;
    $html .= tabs(5).'</ul>'.PHP_EOL;
    $html .= tabs(4).'</header>'.PHP_EOL;
    $html .= tabs(4).'<div class="content">'.PHP_EOL;
    $html .= tabs(5).apply_filters('the_content', get_the_excerpt());
    $html .= tabs(4).'</div>'.PHP_EOL;
    $html .= tabs(3).'</article>'.PHP_EOL;
}
$html .= '<br />'.$paging;
echo $html;
?>

任何帮助都将不胜感激。我在想,也许我需要用div或者别的什么东西来包装这个,但是不能让它们像预期的那样工作。这里有人能帮我吗?我只需要将上面的内容分成两列。这是博客列表页面,显示博客条目的运行列表。使用当前版本的wordpress。提前谢谢。一定有人知道怎么做。提前谢谢。任何帮助都将不胜感激。