forked from LiveCarta/LiveCartaWP
LAW-3715
This commit is contained in:
@@ -2,19 +2,25 @@
|
||||
/**
|
||||
* Template Name: Home Page
|
||||
*/
|
||||
|
||||
$posts = get_posts(['posts_per_page' => 3]);
|
||||
get_header();
|
||||
?>
|
||||
|
||||
<div class="content no-pb">
|
||||
<?php
|
||||
if (have_posts()):
|
||||
while (have_posts()):
|
||||
the_post();
|
||||
the_content();
|
||||
endwhile;
|
||||
endif;
|
||||
?>
|
||||
<?php the_content();?><!--home page content from wp admin wysiwyg -->
|
||||
<div class="blog-page">
|
||||
<div class="bp-list cat-all">
|
||||
<div class="cont">
|
||||
<?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>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user