为了使用空格,我怎样才能使它成为3列和3行然后分页。检查"音乐标题" here。
以下是代码:
<?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' ); ?>
答案 0 :(得分:0)
试试这段代码,
<?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' ); ?>