Grid list on list collection
This commit is contained in:
parent
5db61007c6
commit
508de4afb5
|
@ -1,17 +1,17 @@
|
||||||
<?php if(have_posts()): ?>
|
<?php if(have_posts()): ?>
|
||||||
<div class="tainacan-list-post">
|
<div class="tainacan-list-post text-center">
|
||||||
<div class="row">
|
<div class="row mx-auto">
|
||||||
<?php while(have_posts()): the_post(); ?>
|
<?php while(have_posts()): the_post(); ?>
|
||||||
<div class="col col-md-3 mt-5">
|
<a class="tainacan-list-collection--grid-link mt-5" href="<?php the_permalink(); ?>">
|
||||||
<a class="tainacan-list-collection--grid" href="<?php the_permalink(); ?>">
|
<div class="col tainacan-list-collection--grid">
|
||||||
<p class="tainacan-list-collection--grid-title text-black">
|
<p class="tainacan-list-collection--grid-title text-black text-left">
|
||||||
<?php the_title(); ?>
|
<?php the_title(); ?>
|
||||||
</p>
|
</p>
|
||||||
<?php if ( has_post_thumbnail() && get_the_post_thumbnail_url(get_the_ID()) ) : ?>
|
<?php if ( has_post_thumbnail() && get_the_post_thumbnail_url(get_the_ID()) ) : ?>
|
||||||
<img src="<?php echo get_the_post_thumbnail_url(get_the_ID(), 'collection-list-grid') ?>" class="img-fluid tainacan-list-collection--grid-img" alt="">
|
<img src="<?php echo get_the_post_thumbnail_url(get_the_ID(), 'collection-list-grid') ?>" class="img-fluid tainacan-list-collection--grid-img" alt="">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</a>
|
</div>
|
||||||
</div>
|
</a>
|
||||||
<?php endwhile; ?>
|
<?php endwhile; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue