Skip to content

Instantly share code, notes, and snippets.

<article <?php post_class(); ?>>
<div class="row">
<div class="col-xs-3">
<?php
if (get_the_post_thumbnail()) {
echo get_the_post_thumbnail($post_id, 'news-thumbnail', array('class' => 'img-responsive'));
} else {
echo 'kein thumbnail vorhanden';
}
?>