<header> <h3><a href="<?php echo $link; ?> " title="<?php echo $title; ?> "><?php echo $title; ?> </a></h3> </header> </article> <?php } ?> <?php foreach ($articles as $index => $article) { $klass = thumb_class($index + 1); if (isset($filters) && !empty($filters)) { $klass2 = get_article_class($filters, $article); $klass .= ' ' . implode(' ', $klass2); } include '_article.php'; } ?> </section> <?php }
"> <header> <h2>Content</h2> </header> <?php if (have_posts()) { $index = 0; while (have_posts()) { the_post(); $article = $post; $post_id = $article->ID; if (!isset($image_size)) { $image_size = 'medium'; } if (!isset($klass)) { $klass = thumb_class($index); } include '_article.php'; $index++; // Content pages if (is_page()) { comments_template(); } } } else { include '_not-found.php'; } ?> </section> <?php