home page blogs fix

This commit is contained in:
Jerry
2020-10-27 13:20:18 +03:00
parent befe22b0a3
commit 68ea8a8203

View File

@@ -9,16 +9,23 @@ get_header();
<div class="content no-pb"> <div class="content no-pb">
<div class="main-page"> <div class="main-page">
<?php the_content();?><!--home page content from wp admin wysiwyg --> <?php the_content();?><!--home page content from wp admin wysiwyg -->
<div class="blog-page"> <div class="mp-blog">
<div class="bp-list cat-all"> <div class="cont">
<div class="cont"> <div class="promo-header">
<?php foreach ($posts as $post): ?> <div class="cont">
<a href="<?=get_permalink(); ?>" class="bp-block <?php $categories = get_the_category(); foreach($categories as $category):?><?= $category->slug; ?> <?php endforeach;?>"> <h3>More from the Blog</h3>
<span class="bp-img" style="background-image: url(<?=get_the_post_thumbnail_url(); ?>);"></span> </div>
<span class="bp-title"><span class="cont-overflow"><?=get_the_title($post); ?></span></span> </div>
<span class="bp-description"><span class="cont-overflow"><?=get_the_excerpt(); ?></span></span> <div class="bp-list">
</a> <div class="cont">
<?php endforeach; ?> <?php foreach ($posts as $post): ?>
<a href="<?=get_permalink(); ?>" class="bp-block <?php $categories = get_the_category(); foreach($categories as $category):?><?= $category->slug; ?> <?php endforeach;?>">
<span class="bp-img" style="background-image: url(<?=get_the_post_thumbnail_url(); ?>);"></span>
<span class="bp-title"><span class="cont-overflow"><?=get_the_title($post); ?></span></span>
<span class="bp-description"><span class="cont-overflow"><?=get_the_excerpt(); ?></span></span>
</a>
<?php endforeach; ?>
</div>
</div> </div>
</div> </div>
</div> </div>