Beispiel #1
0
				<span><i class="fa fa-caret-right"></i><?php 
esc_html_e('Read Article', 'koala');
?>
</span>
			</a>
			<div class="post-featured-image" style="background-image:url('<?php 
echo esc_url($post_image);
?>
');"></div>
			<?php 
koala_get_category();
?>
		</div>
		<div class="post-content">
			<?php 
koala_get_category();
?>
			<h2><a href="<?php 
echo esc_url(ecko_get_first_link(get_the_content()));
?>
" target="_blank"><i class="fa fa-link"></i><?php 
the_title();
?>
</a></h2>
			<hr>
			<p class="excerpt"><?php 
echo ecko_truncate_by_words(get_the_excerpt(), 230, '...');
?>
</p>
			<ul class="meta">
				<li class="author"><a href="<?php 
Beispiel #2
0
        if (has_post_thumbnail()) {
            $post_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'sidebar');
            $post_image = $post_image[0];
        }
        ?>
		<a href="<?php 
        the_permalink();
        ?>
" class="post-related-post">
			<div class="background" style="background-image:url('<?php 
        echo esc_url($post_image);
        ?>
');"></div>
			<div class="info">
				<?php 
        koala_get_category(true);
        ?>
				<h5><?php 
        the_title();
        ?>
</h5>
			</div>
		</a>
		<?php 
    }
    ?>

	</section>

<?php 
}