Php 将博客文章设为3行3列

Php 将博客文章设为3行3列,php,wordpress,Php,Wordpress,如何使其成为3列3行,然后分页以使用空白。勾选“音乐标题” 代码如下: <?php if ( have_posts() ) : ?> <h3 class="m-t-none"><?php echo get_theme_mod( 'title-music', esc_html__('Music', 'musik') ); ?></h3> <div class="list-group list-group-lg"> <?php whi

如何使其成为3列3行,然后分页以使用空白。勾选“音乐标题”

代码如下:

<?php if ( have_posts() ) : ?>
<h3 class="m-t-none"><?php echo get_theme_mod( 'title-music', esc_html__('Music', 'musik') ); ?></h3>
<div class="list-group list-group-lg">
<?php while ( have_posts() ) : the_post(); ?>
<div class="list-group-item">
<?php get_template_part( 'template-parts/content', 'download-list' ); ?>
</div>
<?php endwhile; ?>
</div>
<?php get_template_part( 'template-parts/pagination' ); ?>

试试这个代码

<?php if ( have_posts() ) : ?>
<div class="row">
<h3 class="m-t-none col-xs-12 col-sm-3"><?php echo get_theme_mod( 'title-music', esc_html__('Music', 'musik') ); ?></h3>
</div>
<div class="list-group list-group-lg">
<?php while ( have_posts() ) : the_post(); ?>
<div class="list-group-item">
<?php get_template_part( 'template-parts/content', 'download-list' ); ?>
</div>
<?php endwhile; ?>
</div>
<?php get_template_part( 'template-parts/pagination' ); ?>


装饰的具体区域是什么?如果有帮助,请向上投票并选择答案。“艺术家”在页码下,音乐标题中的第一项进入中心,就是它