0
색인 페이지 (벽돌 레이아웃)에 3 또는 4 개의 다른 카테고리를 disply하고 싶습니다. 각 카테고리의 게시물에 표시된 색상이 다릅니다 (표시된 페이지처럼) 다음 5 개 게시물에서 파란색 상자 색상으로 계속 게시 하시겠습니까?wordpress 페이지의 jQuery 벽돌 레이아웃
동일한 루프를 조건문과 함께 사용할 수 있습니까? 또는 무엇이 최상인가?
<ul id="customCategory" class="group">
<?php while (have_posts()) : the_post(); ?>
<li>
<?php
if (has_post_thumbnail()) {
$large_image_url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >';
the_post_thumbnail('featuredImg');
echo '</a>';
}
?>
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0'))); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="info"></div>
</li>
<?php endwhile ;?>
</ul>