Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Forked from ssteinker/wp_article
Created November 26, 2013 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mneuhaus/7660490 to your computer and use it in GitHub Desktop.
Save mneuhaus/7660490 to your computer and use it in GitHub Desktop.
<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';
}
?>
</div>
<div class="col-xs-9">
<header>
<h1 class="entry-title">
<?php the_title(); ?>
</h1>
</header>
<div class="entry-summary">
<?php the_content(); ?>
</div>
</div>
</div>
</article>
<hr />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment