Add podcasts to homepage

This commit is contained in:
2019-01-06 20:30:12 +00:00
parent 5f7c0758ca
commit aa2a74a2f5
6 changed files with 169 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
$day = date('jS', $date);
$date = get_the_date('jS F, Y', $post->ID).' at '.get_the_date('H:i', $post->ID);
$content = (strlen($post->post_excerpt) === 0) ?
strip_tags(substr($post->post_content, 0, 200)).'...' :
strip_tags(substr($post->post_content, 0, 200)).'[...]' :
$post->post_excerpt;
$excerpt = array(
title => $post->post_title,
@@ -33,6 +33,17 @@
}
?>
</div>
<h2 class="title">Podcasts</h2>
<div class="page__columns">
<div class="page__cell">
<?php $podcast = windycoys_get_podcast_meta('tfc') ?>
<?php get_template_part('partials/podcast') ?>
</div>
<div class="page__cell">
<?php $podcast = windycoys_get_podcast_meta('xin') ?>
<?php get_template_part('partials/podcast') ?>
</div>
</div>
</section>
<section class="page__banner">
<?php get_template_part('partials/banner') ?>