Commit 42528bb7 authored by Benthe Kuijpers's avatar Benthe Kuijpers
Browse files

resource label and min-height

parent e434db60
.list {
margin: 0 0 100px;
min-height: 90vh;
&__item {
a {
......
......@@ -7,7 +7,11 @@ $url = ($type === 'url') ? get_field('url', $resource_post) : get_field('file',
<?php
if (!empty($resource_filters)) {
foreach($resource_filters as $filter) {
echo '<span class="label">' . lcfirst($filter->name) . '<span>' . get_field('label', $resource_post) . '</span></span>';
echo '<span class="label">' . lcfirst($filter->name);
if (get_field('label', $resource_post)) {
echo '<span>' . get_field('label', $resource_post) . '</span>';
}
echo '</span>';
}
} ?>
<h2><?php echo get_the_title($resource_post); ?></h2>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment