RawShed
Kilopat
- Katılım
- 19 Temmuz 2015
- Mesajlar
- 334
- Çözümler
- 4
Wordpress'te tema yapıyorum. Bootstrap ile oluşturduğum card'lar normalde yan yana gelmesi gerekiyor fakat block element düzeyinde geliyor. Blog postların yan yana gelmesi için ne yapmalıyım?
PHP:
<div class="container mt-5">
<h3><?php bloginfo("name"); ?></h3>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="card-group" >
<div class="card" >
<div class="card-body" >
<?php the_title( '<h5 class="card-title">', '</h5>' ); ?>
<p class="card-text"><?php the_excerpt(); ?></p>
<a class="btn btn-info" href="<?php the_permalink(); ?>">Devamını Oku</a>
</div>
</div>
</div>
<?php endwhile; endif; ?>
</div>