首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将博客帖子设置为3行3列

将博客帖子设置为3行3列
EN

Stack Overflow用户
提问于 2018-06-07 00:22:17
回答 1查看 33关注 0票数 0

为了使用空格,我怎样才能让它变成3列3行,然后分页。查看“音乐标题”here

代码如下:

代码语言:javascript
复制
<?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' ); ?>
EN

回答 1

Stack Overflow用户

发布于 2018-06-07 00:45:22

试试这段代码,

代码语言:javascript
复制
<?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' ); ?>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50725174

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档